Electronic token

ABSTRACT

An electronic token has at least two conductive surfaces which form either in total or in part a crush resistant casing in which a semiconductor memory is placed. Coupled to the two conductive surfaces is a set of input logic which is used to detect whether or not the first conductive surface is coupled to a device in which a first voltage or a second voltage is present and in which data can be stored in the semiconductor memory accordingly. Output logic is also provided so as to selectively poll the first conductive surface of said casing towards the second voltage with the output logic being electronically coupled to the semiconductor memory so that data may be retrieved from the stored memory. The stored information may be used for controlling access to items, for example as a lock. It may further be used as an inventory control device, postage control device, currency device for the sale of goods. This item can act as a portable storage device which allows through its updating capabilities a mechanism for updating values within the device, such as money units or their equivalents.

This application is a division of application Ser. No. 08/019,932, filedFeb. 19, 1993, now U.S. Pat. No. 5,398,326, which was a divisional ofapplication Ser. No. 07/352,581, filed May 15, 1989, now U.S. Pat. No.5,210,846.

PARTIAL WAIVER OF COPYRIGHT

All of the material in this patent application is subject to copyrightprotection under the copyright laws of the United States and of othercountries. As of the first effective filing date of the presentapplication, this material is protected as unpublished material.

Portions of the material in the specification and drawings of thispatent application are also subject to protection under the maskworkregistration laws of the United States and of other countries.

However, permission to copy this material is hereby granted to theextent that the copyright owner has no objection to the fascimilereproduction by anyone of the patent document or patent disclosure, asit appears in the United States Patent and Trademark Office patent fileor records, but otherwise reserves all copyright rights whatsoever.

CROSS-REFERENCE TO OTHER APPLICATIONS

The following applications of common assignee contain related subjectmatter, and are believed to have effective filing dates identical withthat of the present application:

U.S. Ser. No. 351,759, filed May 15, 1989, entitled "COMPACT ELECTRONICMODULE" now U.S. Pat. No. 4,982,371;

U.S. Ser. No. 351,760, filed May 15, 1989, entitled "COMPACT PACKAGE FORELECTRONIC MODULE" now U.S. Pat. No. 5,091,771;

U.S. Ser. No. 351,998, filed May 15, 1989, entitled "LOW-VOLTAGELOW-POWER STATIC RAM" now U.S. Pat. No. 4,972,377;

U.S. Ser. No. 352,598, filed May 15, 1989, entitled "HAND-HELD WAND FORREADING ELECTRONIC TOKENS" now U.S. Pat. No. 4,945,217;

U.S. Ser. No. 352,596, filed May 15, 1989, entitled "INTERFACE FORRECEIVING ELECTRONIC TOKENS" now U.S. Pat. No. 4,948,954;

U.S. Ser. No. 351,999, filed May 15, 1989, entitled "SERIAL PORTINTERFACE TO LOW-VOLTAGE LOW-POWER DATA MODULE" now U.S. Pat. No.5,045,675;

U.S. Ser. No. 352,142, filed May 15, 1989, entitled "RAM/ROM HYBRIDMEMORY ARCHITECTURE" now U.S. Pat. No. 4,995,004;

U.S. Ser. No. 351,997, filed May 15, 1989, entitled "MODULAR DATASYSTEM" now abandoned;

U.S. Ser. No. 345,144, filed Apr. 28, 1989, entitled "INTEGRATED CIRCUITWITH IMPROVED PROTECTION AGAINST NEGATIVE TRANSIENTS" now abandoned; allof which are hereby incorporated by reference.

BACKGROUND AND SUMMARY OF THE INVENTION

The present invention relates to compact electronic modules, and tocomponents and packaging for use with such modules.

One of the long-term trends in electronics has been to provide higherfunctionality at lower cost in a more compact package. Many pages havebeen written on this long-term trend, and it will not be analyzed here.However, the numerous innovations disclosed in the present applicationare believed to contribute to a major advance in this direction.

Innovative Module

The present application discloses a very compact electronic module,which includes an integrated circuit (preferably including memory) and abattery. The module is preferably coin-shaped, and the two faces of themodule are isolated from each other. Host systems can read/write accesssuch modules, by using a one-wire-bus protocol.

One-Wire-to-Three-Wire Converter

The module may contain one integrated circuit or several, but theintegrated circuits in the module preferably include aone-wire-to-three-wire converter circuit. In the presently preferredembodiment, this is integrated on a single chip with a small amount ofserial-access memory. However, alternatively the converter may be usedto provide a standard three-wire serial bus output, which provides aninterface to one or more other chips. The other chips may include, forexample, electronic keys (such as the DS1207 from Dallas Semiconductor).

ESD Protection Needs

A common specification for integrated circuits is the ability towithstand five successive electrostatic discharges (ESDs), each of 1000volts, at the circuit pads, without the leakage current increasing to 10microAmpere. However, a de facto standard of 2000 V ESD immunity hasbeen springing up for many applications.

However, even this level of ESD immunity may be insufficient forhigh-noise applications. Specifically, in the large-scale systemsenvironment of the presently preferred embodiment, the data modules willface some unusual integrity requirements. Since the modules may beexposed to very rough treatment, in consumer and industrialenvironments, they should preferably have a very high level of immunityto electrostatic discharge (ESD).

The electronic data module of the presently preferred embodimentincludes an innovative ESD protection diode structure, which helps toprotect against data loss under severe electrostatic dischargeconditions.

Innovative Packaging Scheme

To fit the integrated circuit into this very small space, an innovativepackaging scheme is used in the preferred embodiment. A two-part metalcontainer is used, which has two shallow concave pieces which fittogether. The integrated circuit (preferably in a low-height package,such as a flat-pack or small outline integrated circuit (SOIC) ismounted on a very small printed circuit board (preferably a flexibleboard), which fits inside the container. Laterally spaced from theintegrated circuit, on the other end of the small board, the board endis sandwiched between a battery and a piece of elastic conductivematerial (such as conductive plastic foam). Thus, the battery isconnected between one face of the container and a power conductor on theboard. The piece of elastic conductive material makes contact between adata trace on the board and the other face of the container. Anothertrace on the board makes contact directly to the container face on whichthe battery's ground terminal is connected. Thus, simple wiring on thesmall board, using through-hole vias, suffices to route power, ground,and data lines to the integrated circuit, while providing a sealeddurable package with two external contacts.

The battery is preferably a low-voltage battery (1.5 V, in the preferredembodiment). This is cheaper, and maximizes power efficiency, butrequires some innovative circuit design features to accommodate theelectrical interface. (Electronic watches have often been powered by 1.5V batteries, but such devices do not have any direct electricalinterface to the outside world. By contrast, the module of the presentlypreferred embodiment communicates over a one-wire bus which is driven byfull CMOS voltage levels).

Module Mounting and Adhesion

The electronic token modules can be used in several ways. For example,in some embodiments it may be preferable to use loose tokens. However,in many applications (such as inventory control, machinery maintenancerecords, or retail tagging) it may be preferable to mount the tokens onthe physical items to which the data in the individual tokens refers. Inthis case, the token must be mounted so that both terminals of the tokencan be contacted by the user. In the presently preferred embodiment(using a package like that shown in FIG. 1A), only one of the possibleorientations will work. (The inner casing piece 100A must be exposed,and therefore, if the token is to be mounted on a surface, it is theouter casing piece 100B which should be adhered to the surface.)

For such applications, the packaged modules (in embodiments usingpackages like those of FIGS. 1A and 1B) are preferably shipped withdouble-sided adhesive tape already affixed to the side of the modulewhich is to be adhered to a surface (face 100B, in the example of FIG.1B).

Innovative Integrated Circuit

The module, in the presently preferred embodiment, contains anintegrated circuit which itself includes several innovative features.This integrated circuit, in the presently preferred embodiment, includesan electrical interface to the one-wire bus (including heavy protectionagainst minority carrier injection), a one-wire-to-three-wire convertercircuit, and a small amount of serial-access memory.

The integrated circuit, in the preferred embodiment, contains 256 bitsof serial-access memory. This memory is read- or write-accessed as asingle block transfer. It is contemplated that larger amounts of memorymay be advantageous. Of course, other types of memory organization canbe used instead; but for many applications it is contemplated that useof a very small amount of memory (4K or less) may be particularlyadvantageous, since this extends the battery lifetime.

Low-Voltage SRAM Architecture

Among the innovative teachings set forth in the present application is alow-power low-voltage complementary metal oxide semiconductor (CMOS)six-transistor static random access memory (SRAM), which can operate ona power supply voltage which is less than the sum of the n-channel MOS(NMOS) and p-channel MOS (PMOS) threshold voltages, and which does notinclude any analog or metastable sense amplifier stages. The selectedcell is allowed to pull one of its bitline pair all the way down toground. Thus, fill logic levels appear on the bitline pair. Only oneline of the bitline pair is connected to the following gate stage.Preferably bitline precharge transistors are connected to pull up allbitline pairs whenever the RAM is not selected.

RAM/ROM Hybrid Memory

A further innovative teaching, in the preferred embodiment, is the useof RAM/ROM hybrid for a portion of the memory array. An innovativememory cell is used, which can operate as a static RAM, or which can beprogrammed to operate as a read only memory (ROM) cell. Thus users whoneed the extra security permitted by ROM encoding can have thiscapability, while users who do not need ROM encoding can useoff-the-shelf parts as RAM only.

Chip Series with Unique Hard-wired Identifications

A further innovative large-scale system concept is to use the capabilityto introduce ROM into the memory space to provide memory chips withcompletely unique hard-wired identifications. This provides tremendousadvantages for security-related needs.

In this embodiment, an external system can test the chip's integrity, byperforming a read-write-read operation on the memory space which issupposed to be ROM, and also on a portion of the memory space which isexpected to be RAM. This will provide at least one insurance against theROM identification being emulated in RAM. Optionally, the externalsystem can even test the data output timing, to ascertain whether theRAM and ROM outputs are timed identically (and therefore to assure thatthe address inputs are not being decoded to address two differentchips).

this also provides advantages of failure protection. Very fewcatastrophes will be able to eradicate the hardware encoding of thecells which have been converted to ROM. (Even if the electricalfunctionality is totally destroyed, the fuse pattern can be radoptically.). Thus, recovery of these bits may provide useful informationin failure analysis. (For example, a manufacturing lot number can becross-referenced from a unique identification number in ROM. This wouldprovide greatly enhanced capabilities for analysis of late failures.

For another example, where the nonvolatility is electricallyprogrammable, a system which recognized an imminent catastrophic failure(e.g. an avionics system facing a crash) might be able to save some datain the memory at the last minute.

Innovative ESD Protection Diode

The presently preferred embodiment uses an innovative protection diodestructure, in which a significant device-level feature, is the provisionof an intermediate-depth diffusion. This intermediate-depth diffusionwill have a junction depth (inside the P-well or N-well) which issignificantly deeper than the source/drain junction depth, butsignificantly shallower than the depth of the well. Thisintermediate-depth diffusion is useful in the innovative diode structuredescribed, but can also be used for other device structures. Forexample, this structure provides a compact bipolar transistor structurewith reasonably high gain. This intermediate-depth diffusion can also beused for input protection structures (i.e. to provide device structureswhich will rapidly and recoverably break down, when a high-voltage pulseappears, to discharge the high-voltage pulse without damaging theprimary circuitry of the chip). For another example, thisintermediate-depth diffusion can also be used to form diffusedcapacitors with relatively large capacitance per unit area, orcapacitors whose capacitance varies greatly with voltage (suchcapacitors are commonly referred to as varactors.)

A further advantage of this structure, and a further innovative teachingset forth herein, is that the innovative structure can be fabricatedwith minimal added process complexity. An intermediate-depth diffusionis added to a standard process flow; but the shallow diffusions in thebattery protection structure simply make use of the source/drainimplants, and the deepest diffusion simply uses the N-well (or P-well)fabrication steps.

For process simplicity, the intermediate-depth diffusion is mostpreferably formed by using an implant which is identical (in does andenergy) to another implant used in the same process. The additionaljunction depth is achieved by exposing the earlier implant to ahigh-temperature step before the later implant is performed, so that theearlier implant will have a correspondingly greater diffusion length(integral (Dt)⁰.5).

A variety of "substrate" structures are commonly used for integratedcircuits, and far more have been proposed or have seen limited use. Forexample, the "substrate" which surrounds the N-wells and P-wells isoften an epitaxial layer atop a much more heavily doped underlyinglayer. For another example, the N-wells and P-wells are commonly formedby separate implantation (and drive-in) steps, and such processes arereferred to as "twin tub" processes; but alternatively one of thesesteps may be omitted, so that, for example, the PMOS devices might beformed directly in an N-type upper substrate portion. Other importantstructure types include silicon-on-insulator structures and fulldielectric isolation structures, where there is no electricallycontinuous body linking all of the wells. It is important to note thatthe innovative teaching set forth herein can advantageously be adaptedto a tremendous variety of substrate structures, including not only theembodiments listed or mentioned, but also many others.

It should be noted that the disclosed families of devices structures canalso be used for a variety of other purposes. In particular, thedisclosed structure provides a diode structure which may be adapted foruse in other types of device structures, in very-low-power integratedcircuit applications.

It should also be noted that some prior art CMOS structures have usedguard ring structures to suppress latchup. The problem of latchup(suppressing the parasitic thyristor) is a quite different problem fromthe leakage problems discussed above, but in both cases collection ofminority carriers is desirable. Guard ring structures are commonly usedto surround locations (such as output drivers) where transient signalsare most likely to cause injection of minority carriers. (A sufficientinjection of minority carriers could fire the parasitic thyristor, andthus lead to latchup.)

In the preferred class of embodiments, the innovative diffusionstructure described is used to conserve the charge in the battery. Onedrain on the battery is caused by negative excursions on an incomingdata line (for example, when a negative voltage spike occurs doe to anelectrostatic discharge (EDS) event). In a normal battery-poweredintegrated circuit, the current drawn during such a negative voltagesurge would be drawn both from the ground connection and also from thepower supply connection. However, in stringently power-limitedapplications, even this amount of current, over the lifetime of thepart, can use enough of the battery capacity to shorten the part'slifetime substantially.

This is, when a negative transient occurs, a large number of electronswill be injected. If these electrons are allowed to diffuse freely, manyof them will diffuse toward the high-potential regions which areconnected to the battery. This charge transfer reduces the total chargeavailable during the lifetime of the battery.

The shielded diode structure of FIG. 16K is protected: almost allelectrons injected at first junction 111 will be collected at secondjunction 112. By contrast, a simple field effect transistor (FE) outputdriver, like transistor 150 in FIG. 16M, is not isolated: when the drainjunction of such an NMOS FET is forward biased, electrons will bereleased into substrate 150, and many of these electrons can thendiffuse to regions of high potential.

Therefore, a further innovative teaching is to use the innovativediffusion structure to source current to negative transients which mayoccur on the I/O lines of a chip. In this embodiment, an I/O line isconnected so that the first junction (in a structure as described above)will be forward biased when the I/O line goes negative, and the otherside of the first junction is connected to ground potential. Thus, whena negative-going transient occurs, current will be sourced, through thefirst function, from ground.

When a negative-going transient occurs, some current will also besourced, at the output transistor which drives the I/O line, and some ofthis current component will cause minority carrier diffusion; but theuse of this innovative teaching helps to reduce the amount of currentsourced which can cause minority carrier diffusion. Preferably the areaof the first junction is substantially larger than that of the junctionarea of the source/drain diffusion, in the output transistor, which isconnected to the power supply.

This innovative teaching also has two further advantages. First, thereduced risk of minority carrier injection means that the risk of storeddata states being upset by transient signals is reduced. Second, therisk of latchup is reduced.

Thus, this innovative teaching advantageously provides a battery-poweredintegrated circuit which is protected against battery depletion byelectrical noise appearing at input/output connections. This innovativeteaching may be particularly advantageous in integrated circuits whichare intended for use in systems where high levels of noise must betolerated.

Innovative Bus Organization

To communicate with this memory, in the preferred embodiment, aninnovative one-wire bus protocol is used. This protocol is well adaptedfor interface to the low-cost architecture of the module of thepresently preferred embodiment.

Time-Domain Relations

A bidirectional one-wire bus requires some use of the time-domain orfrequency-domain relations, to track the two half-channels ofcommunication.

It is quite possible to put an accurate time base in a low-powerintegrated circuit, using CMOS oscillators stabilized with quartzcrystals; but the use of such techniques adds to the cost of the part. Acrude time base can be provided simply by using an oscillator which isnot stabilized. However, the response time of a simple timing circuitwill be dependent on processing parameters. In conventional integratedcircuit processing, there will normally be significant variation inparameters such as layer thickness, line-to-space ratio, and net dopantconcentration in various locations. Thus, the electrical parameters,such as the series resistance of a polysilicon resistor of a givennominal dimension, can easily vary by ±20% or more, even in awell-controlled process. This means that the net speed of a timingcircuit can vary by even more, since the net speed will be dependent onseveral electrical parameters, which may vary together or in opposition.

Parameter variation can be compensated for, by testing a newlyfabricated wafer and programming elements on-chip (such as trimmingcapacitors) to adjust the net delay of timing elements; but thisadditional manufacturing step adds significant expense.

Low-Voltage CMOS Logic

Moreover, in a low-voltage CMOS system. (i.e. where the supply voltageis less than the sum of the PMOS and NMOS threshold voltages), achievingeven a crude time base is much more difficult. This is due to thetransfer characteristics of a logic gate in this technology.

FIG. 5A shows the voltage transfer characteristics (V_(OUT) graphed as afunction of V_(IN)) for an inverter in conventional CMOS technology(e.g. where the supply voltage V_(DD) is about 5 Volts, and the PMOSthreshold voltage V_(TP) and the NMOS threshold voltage V_(TN) both havemagnitudes in the range of about 0.8 V to 1.1 V.) Suppose that the inputvoltage V_(IN) was initially at aground voltage V_(SS) (0 V), so thatthe inverter's NMOS transistor is off and the inverter's PMOS transistoris on. Now, as V_(IN) starts to rise, V_(OUT) will stay at V_(DD) untilV_(IN) rises to V_(TN). At this point the NMOS device will start to passcurrent. However, the NMOS device will not be able to overpower the PMOSdevice until the voltage reaches a trip point V_(TRIP). The trip pointvoltage V_(TRIP) is well-defined for each particular logic gate, but isdependent on the device dimensions. (If the width of the PMOS device isincreased, or the length of the PMOS device decreased, or the width ofthe NMOS device is decreased, or the length of the NMOS deviceincreased, then the NMOS device will have more difficulty inoverpowering the PMOS device, and the trip point V_(TRIP) will occur ata higher voltage.) As the input voltage V_(IN) increases, the NMOSdevice will pass more current and the PMOS device will pass lesscurrent, until at voltage V_(DD) -V_(TP) the PMOS transistor turns off.

By contrast, the transfer characteristic of a low-voltage CMOS inverter,as shown in FIG. 5B, are quite different. (Suppose, for example, theV_(DD) =1.5 V, and V_(TP) =V_(V) _(TN) =0.9 V. Thus, note that FIGS. 5Aand 5B are not drawn to the same scale.) Here there is no region whereboth the NMOS and PMOS devices are on. When the input voltage V_(IN)increases above V_(DD) -V_(TP) (0.6 V in this example), the PMOS devicewill turn off, but the NMOS device has not yet turned on. Therefore,until the input voltage increases to V_(TN) (0.9 V in this example), theoutput node will be floated. (The node capacitance usually faces afairly high-impedance load, and therefore, within the time normallyrequired for the input voltage to swing across this voltage range, theoutput voltage will remain fairly constant. Moreover, a weak latch willtypically be added to bridge this dead zone.) Thus, the transfercharacteristic shown includes a significant hysteresis, since, betweenV_(DD) -V_(TP) and V_(TN), the output voltage is dependent on thedirection of change of the input voltage.

Error of Crude Time Base

a response curve like that of FIG. 5B makes it more difficult to controlthe net delay of a circuit, since small changes in electrical parametersmay produce large changes in the response characteristics. Thus, in suchlow-voltage technology, the frequency of an unstabilized oscillator mayeasily vary over a very large range (for example, over a range of 4:1),even in a well-controlled process.

The system of the presently preferred embodiment makes use of such anunstabilized oscillator to provide a crude time base within the module.This crude time base, together with electrical relationships, providesthe necessary referent for communication over a one-wire bus. The use ofa one-wire bus is very advantageous to the system user.

Electrical I/O Relationships

The bus protocol is also designed to minimize the charge transfer out ofthe battery in the module. This is done by using an "open-collector"type architecture. The protocol has been specified so that the modulenever sources current to the data line, but only sinks current.

When a data module is in contact with a host system, the host systeminitially pulls up the data line. (The module also preferably contains avery high-impedance pull-down resistor at this node, but this isincluded in the preferred embodiment, merely to avoid the risk offloating nodes.) The host system initiates each stage of a data transferoperation by driving the data line low. The module detects this fallingedge, and one of several further events can then occur.

If the module is being read (as previously determined by overhead bits),the nodule, after seeing the falling edge which starts the cycle, eitherwill or will not turn on its NMOS pull-down transistor, depending on thevalue of the data bit being read at that cycle. When the NMOS pull-downis turned on, the module lets its preset timing period elapse, and thenturns off the NMOS pull-down. Thus, when the system wants to read fromthe module, it applies a falling edge, waits a short time to be surethat the module has received the falling edge, and then attempts to pullup the data line, using a pull-up resistor which is not strong enough tooverpower the NMOS pull-down transistor in he module. After waiting asufficient time for the pull-up resistor to have raised the line to ahigh level (if the NMOS pull-down is off), the system tests the datavoltage to ascertain the data bit. The system then waits for the maximumtime period of the module delay to elapse, plus enough time for the dataline to stabilize at a high level, and then sends another falling edgeto read the next bit.

If the module is being written to (as previously determined by theoverhead bits), the module, after seeing the falling edge which startsthe cycle, waits for its preset timing period to elapse, and then storesthe logic value of the data line. Thus, when the system wants to writeto the module, it applies a falling edge, waits a short time to be surethat the module has received the falling edge, and then drives the dataline either high or low, depending on the data bit. The system thenwaits for the maximum time period of the module delay to elapse,restores the data line to a high level, allows enough additional timefor the data line to stabilize at a high level (and for the edgedetector in the module to reset itself), and then sends another fallingedge to write the next bit.

Block Transfer--Overhead and Reset

All data transfers are preferably done by reading or writing the entirecontents of memory as a single serial stream. A short block of overheadbits, at the start of each transfer, defines the transfer type.

A further point of the protocol is a way to reset the module. Suppose,for example, that a module is pulled out of the slot in the middle of adata transfer, so that the memory pointer inside the module shows thatthe next bit to be written is bit number 117. The next system into whichthis module is inserted must not assume that the module's startingaddress is necessarily zero.

To make sure that the starting memory address of a newly inserted moduleis zero, as expected, the system sends a long string of write-zerocommands, followed by a write-one command. The module contains simplesequential logic, which monitors the incoming bit stream for nonstopsequences of write-zero commands. If the module receives a nonstopsequence containing as many write-zero commands as the total length ofthe memory, the counter will freeze until the chip is reset. The chipwill be reset if and only if an incoming "1" bit is seen while thecounter is frozen.

this provides a reset capability, whereby the system can ensure that thestarting address of the module is accurately known. Thus, on everyinsertion of a new module, the system can send such a reset sequence toinitialize the address pointer in the module. Note that thisaddress-pointer-reset is only necessary once per insertion. The sequenceof write-zero commands will not normally destroy data, because themodule never receives the overhead bit sequence which would tell it toenter write mode. (The only conditions under which data could bedestroyed by these commands is when the module has been interrupted inthe middle of a previous write sequence, and in this case the data maybe presumed corrupt anyway.)

Of course, the data structures inside memory would normally includeprovisions for software error protection, such as overhead bits andchecksum bits. However, a wide variety of such formatting schemes can beused, at the direction of the user.

Innovative System Architecture

These innovative ideas are used as parts of a very innovative systemarchitecture. The electronic module enabled by the innovative teachingsherein is extremely compact and extremely cheap. From a systems point ofview, this module is in some ways more analogous to a read/write barcode than to a conventional electronic memory system.

Macro-System Architecture

Thus, this innovative module can be used for price tags, for inventorytags, for work-in-process monitoring, for retail sales (to permitcustomers to select merchandise (e.g. by taking one module or a handfulof modules to a cashier or to an automated check-out machine), withoutexposing the actual inventory to pilferage), and for a wide variety ofother such compact data-transfer applications. Thus, the innovativemodule described can be regarded as an electronic token, which is asportable and rugged as a metal token, but which is far more versatile.

This provides an innovative large-scale systems, architecture, whereinmultiple host systems can each interface to small electronic "tokens."The tokens are small coin-shaped two-terminal read/write data modules,and are compact, rugged, and extremely cheap. Each of the tokenscontains only two external contacts, a battery, and a small amount ofmemory. The memory is serially accessible, using a one-wire-but protocolwhich minimizes the drain on the battery.

Electrical Interface from Token to Standard RS232 Interface

The presently preferred embodiment also uses an innovative electricalinterface to the tokens, which permits interfacing to tokens with a widevariety of computers, including a tremendous variety of personal orother computers, as long as the computer includes an interface to RS232(or some comparable standard). The token has a one-wire-bus interface,implemented in a battery-backed open-collector architecture, whichprovides a read/write interface. The communication protocol expected bythe token has been specified so that the token never sources current tothe data line, but only sinks current. The communication protocol alsoincludes time-domain relations which are referenced to a very crude timebase in the token, and the system must preserve timing relations whichwill be satisfied by tokens in which the time base takes on any of thewide range of foreseeable speeds. To interface to this protocol, theprogrammable capabilities of the standard UART chip in the computer'sRS232 interface are exploited to provide adaptation to the time baserequirements of the module. This is done by writing an entire byte ofoutput from the UART, at a much higher baud rate than the module can berelied on to accept, to write a single bit of data into the module. Theread-data line (RX) of the UART is tied back to the transmit-data line(TX) through a resistor, so that the UART will also always report a readof the same data byte being written, unless the token has turned on itspull-down transistor. An electrical network is used at the interfacewhich (in effect) reverses the ground plane identification of the twoleads, but which does provide the correct signal polarity to the tokenfor signal discrimination in read mode.

Physical Interface for Receiving Electronic Tokens

Preferably each host system uses a physical configuration of electricalcontacts which provides rapid contact for electronic data modules(tokens). A slot, dimensioned to receive electronic tokens, includes agrounded contact positioned to make contact to the edge of a token whichmay be inserted, and two data contacts which are positioned to makecontact to the opposite faces of the token. Each of the data contacts isconnected to an open-collector driver circuit, including a pull-upresistor which will bring the potential of the contact high when theslot is empty. The token is shaped so that its edge, and one of itsfaces, are connected to the token's ground line, and the other face isthe token's data line. Thus, when a token is inserted (no matter whichway the token is facing), one of the two data contacts will beimmediately pulled to ground, by short-circuiting across the groundplane of the token. The system can thereby recognize that a token hasbeen inserted, and that the other data contact (the one which was notshorted to ground) can communicate with this token's data line. Thus,even though the token itself is asymmetric, and even though thedirectional orientation of the token is not initially known to thesystem, no physical asymmetry needs to be introduced into the token orthe slot to assure proper data interface.

Alternative Physical Interface--Hand-Held Wand

A wand which provides rapid contact to a two-terminal electronic tokendata module. The wand includes one contact which will make contact tothe periphery of an electronic token which the wand is pressed against,and one contact which will make contact to the center of the token.Preferably the wand includes a base portion which is shaped to be wornon the second joint of a user's finger. This wand can be used for veryrapid manual contacting of electronic tokens in various physicalpositions. This can be very advantageous in a variety of datacollection/updating applications such as retail checkout, or trackingwork-in-progress in a computer-assisted-manufacturing environment.

BRIEF DESCRIPTION OF THE DRAWING

The present invention will be described with reference to theaccompanying drawings, which show important sample embodiments of theinvention and which are incorporated in the specification hereof byreference, wherein:

FIGS. 1A and 1B show two versions of the packaged module of thepresently preferred embodiment: FIG. 1A shows a version using a packagedintegrated circuit ion a flexible circuit board, and FIG. 1B shows aversion using a chip-on-board mounting with a rigid circuit board.

FIG. 2A is a timing diagram of a write-1 operation, FIG. 2B is a timingdiagram of a write-0 operation.

FIG. 3 is a timing diagram of a read operation, in the module of thepresently preferred embodiment.

FIG. 4 shows the format of the overhead bits used for each block datatransfer operation, in the module of the presently preferred embodiment.

FIG. 5A shows the voltage transfer characteristics (V_(OUT) graphed as afunction of V_(IN)) for a typical inverter in conventional CMOStechnology (where V_(DD) >V_(TP) +V_(TN)).

FIG. 5B shows the transfer characteristic for a typical inverter in alow-voltage CMOS technology (where V_(DD) <V_(TP) +V_(TN)).

FIG. 6 is an overview of the physical organization of the integratedcircuit which is used, in the presently preferred embodiment, in themodule of FIG. 1.

FIG. 7 shows the electrical organization of the integrated circuit ofFIG. 6.

FIGS. 8A and 8B are two parts of a single Figure which shows theone-wire-to-three-wire conversion circuit used, in the presentlypreferred embodiment, in the integrated circuit of FIG. 6.

FIGS. 9A and 9B are two parts of a single Figure which shows the controllogic used, in the presently preferred embodiment, in the integratedcircuit of FIG. 6.

FIG. 10 shows the electrical organization of the memory, in thepresently preferred embodiment, in the integrated circuit of FIG. 6.

FIG. 11 shows an innovative memory cell, which can operate as a RAMcell, or which can be programmed to operate as a ROM cell.

FIG. 12 shows a sample host system, which can interface to electronictoken modules like the module of FIG. 1.

FIG. 13 shows the single-ended sense amplification stage used in thememory of FIG. 10, in the presently preferred embodiment.

FIG. 14 shows the bitline precharge and pull-up logic used in the memoryof FIG. 10, in the presently preferred embodiment.

FIGS. 15A, 15B, and 15C show the finger-mounted wand used, in thepresently preferred system embodiment, for manually contacting multipleelectronic tokens successively.

FIGS. 16A-1 through 16A-8 relate to several embodiments of an innovatebattery protection diode, of which one version is preferably used in theintegrated circuit of FIG. 6. It should be appreciated that thesedrawings are not necessarily drawn to scale, and, in particular, thatsome of the vertical dimensions in the device sections shown have beenexaggerated for clarity.

FIGS. 16A-1 through 16A-8 shows the layout of the ESD protection diode,in the presently preferred embodiment.

FIG. 16B illustrates a cross-sectional diagram of a prior art batteryprotection circuit,

FIG. 16C illustrates a schematic diagram of the parasitic PNP transistorin the prior art structure of FIG. 16B.

FIG. 16D illustrates a cross-sectional diagram of a first sampleembodiment of the disclosed innovative battery protection circuit.

FIG. 16E illustrates an electrical schematic of the parasitic PNPtransistors of the battery protection circuit of FIG. 16D.

FIG. 16F illustrates a top view of the battery protection circuit ofFIG. 16D.

FIG. 16G illustrates a cross-section of a portion of the structure shownin FIG. 16D.

FIG. 16H illustrates a dopant profile of a sample embodiment of thebattery protection circuit of FIG. 16D.

FIG. 16I illustrates a cross-sectional view of an alternate embodimentof the disclosed innovative battery protection circuit utilizing aSilicon-On-Insulator construction.

FIG. 16J illustrates a cross-sectional diagram of yet another embodimentof the disclosed innovative battery protection circuit, wherein thestructure is fabricated in an epitaxial layer disposed on top ofsemiconductor material.

FIG. 16K shows an example of a battery protection circuit in a CMOSintegrated circuit with a P-type substrate.

FIG. 16L shows a test structure which is similar to the device structureof FIG. 16K.

FIG. 16M shows test data for this structure.

FIG. 16N shows a further alternative embodiment, wherein a diffusionstructure is connected to provide ESD protection for an I/O connectionof a battery-powered integrated circuit.

FIG. 16P shows test data for the device structure of FIG. 16N.

FIG. 17 shows the configuration of contacts used, in one embodiment, ina host system to contact electronic tokens.

FIG. 18 shows the electrical driver configuration used on the host side,in one class of embodiments, to interface to electronic tokens.

FIG. 19 shows a network used, in another embodiment, to interface from aserial port to an electronic token.

FIG. 20 shoes timing relations preferably used, in a sample embodiment,for interfacing from a standard RS232 port to an electronic token.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

The numerous innovative teachings of the present application will bedescribed with particular reference to the presently preferredembodiment. However, it should be understood that this class ofembodiments provides only a few examples of the many advantageous usesof the innovative teaching herein. In general, statements made in thespecification of the present application do not necessarily delimit anyof the various claimed inventions. Moreover, some statements may applyto some inventive features but not to others.

Physical Packaging of Module

FIGS. 1A and 1B show the relation of assembled elements, in two versionsof the packaged module of the presently preferred embodiment. (FIG. 1Ashows a version using a packaged integrated circuit on a flexiblecircuit board, and FIG. 1B shows a version using a chip-on-boardmounting with a rigid circuit board.) Note that the module shownincludes an integrated circuit and a battery. The module is preferablycoin-shaped, and the two faces of the module are isolated from eachother.

To fit the integrated circuit into this very small space, an innovativepackaging scheme is used in the preferred embodiment. A two-part metalcontainer is used, which has tow shallow concave pieces 0100A and 0100Bwhich fit together. The integrated circuit (in a low-height package0130, such as a flat-pack or SOIC) is mounted on a very small flexibleprinted circuit board 0120, which fits inside the container 0100.Laterally spaced from the integrated circuit 0130, on the other end ofthe small flexible board 0120, the board end is sandwiched between abattery 0100 and a piece of elastic conductive material 0140 (such asconductive plastic foam). Thus, the battery 0100 is connected betweenone face 0100B of the container 0100 and a power conductor (not shown)on the board 0120. The piece of elastic conductive material 0140 makescontact between a data trace (not shown) on the board 0120 and the otherface 0100A of the container 0100. Another trace (not shown) on the board0120 makes contact directly to the container face 0100B on which thebattery's ground terminal is connected. Thus, simple wiring on the smallboard 0120, using through-hole vias, suffices to route power, ground,and data lines to the integrated circuit 0130, while providing a sealeddurable package with two external contacts.

In the alternative embodiment of FIG. 1B, a small rigid circuit board0120' is used in place of the flexible board 0120. Note that anadditional piece of conductive foam 0142 is used in this case, toprovide electrical contact from a trace on the board 0120' to the groundside 0100B of the casing. Note also that, optionally, an insulatingadditional piece of foam 0142 provides spacing between the board 0120'and the casing piece 0100A. Note also that a chip-on board mounting0130' is used instead of the package 0130

The casing halves 0100A/100B are preferably parts of a standardelectronic battery package. Such a casing can be hermetically closed,simply by swaging the two parts together with sealant at their join. Inthe presently preferred embodiment, the casing 0100 has externalfinished dimensions (after the case is sealed) of 16 mm wide and 3.2 mmthick, and the battery 0110 is battery type AG1. However, of course, awide variety of other dimensions and battery types can be used, as longas the dimensions are compatible.

The battery is preferably a low-voltage battery (1.5 V, in the preferredembodiment.) This is cheaper, and maximizes power efficiency, butrequires some innovative circuit design features to accommodate theelectrical interface. (Electronic watches have often been powered by 1.5V batteries, but such devices do not have any direct electricalinterface to the outside word. By contrast, the module of the presentlypreferred embodiment communicates over a one-wire bus which is driven byfull CMOS voltage levels.)

The integrated circuit, in the preferred embodiment, contains 256 bitsof serial-access memory. This memory is read- or write-accessed as asingle block transfer. It is contemplated that larger amounts of memorymay be advantageous. Of course, other types of memory organization canbe used instead; but for many applications it is contemplated that useof a very small amount of memory (4K or less) may be particularlyadvantageous, since this extends the battery lifetime.

Module Mounting and Adhesion

In many applications (such as inventory control, machinery maintenancerecords, or retail tagging) users will prefer to affix the tokens to thephysical items to which the data in the individual tokens refers. Inthis case, the token must be mounted so that both terminals of the tokencan be contacted by the user. In the presently preferred embodiment(using a package like that shown in FIG. 1A), only one of the possibleorientations will work. (The inner casing piece 0100A must be exposed,and therefore, if the token is to be mounted on a surface, it is theouter casing piece 0100B which should be adhered to the surface.)

For such applications, the packaged modules (in embodiments usingpackages like those of FIGS. 1A and 1B) are preferably shipped withdouble-side adhesive tape already affixed to the side of the modulewhich is to be adhered to a surface (face 0100B, in the example of FIG.1B).

Preferably the double-sided tape has a high-tack face adhered to thecasing piece 0100B. The other side of the tape may be high-tack, forpermanent mounting; or may be low-tack, for applications (such asretail) where the tokens will be frequently reused; or may bemedium-tack. For many applications, the tokens can be advantageouslyshipped with the low-tack face of many tokens stuck to a common coversheet.

Integrated Circuit Organization

FIG. 6 is an overview of the physical organization of the integratedcircuit which is used, in the presently preferred embodiment, in themodule of FIG. 1. This is a fairly small integrated circuit, with a diesize, in the preferred embodiment, of about 2,000 mil² (in 1.2 microntechnology).

The incoming ground line is connected to a contact pad 612, and theincoming data line is connected to a contact pad 611, in an area 610which contains I/O and ESD circuitry. (The battery terminal is connectedto a third contact pad 613.) The contact pad 611 is connected to a largepull-down transistor 614, and to an ESD protection structure 618/619,which will be described in detail below. A very weak transistor 615,which is connected to be always turned on, is connected in parallel withthe driver transistor 614, to provide a high-impedance leakage pathwhich brings the two terminals of the module toward the same potentialwhen the module is not connected to a system.

The incoming data interface is provided by 1-wire-to-3-wire conversioncircuitry 630, which implements the one-wire bus protocol. Thisconversion circuitry connects to the memory 640, and to the controllogic 620, through a more conventional three-wire bus (including data,clock and reset lines).

The memory 640 is internally configured as a random-access memory array(although the host can only access the memory serially, as a singleblock). The memory includes peripheral logic 642, and two arrayportions, the overall array dimensions, in the preferred embodiment, are16 rows by 16 columns, but two rows (shows as area 644) are preferablyformed of RAM/ROM hybrid cells, which will be described below. The cellsin the other 14 rows (shown as area 646) are conventional six-transistorSRAM cells.

Of course, a wide variety of other array sizes and layouts can also beused, as will be obvious to those skilled in the art of memory design.In fact, it is contemplated that, in the near future, the memory arraysize may be advantageously increased from 256 bits to 1024 bits.

FIG. 7 shows the electrical organization of the integrated circuit ofFIG. 6. The RAM 640 receives ten address bits Q0-Q9 from the controllogic 620, as well as control signals ER2, SDOUTB, and RESET. Controlsignal ER2 enables the RAM. Control signal EWD selects read or writemode. Control signal SDOUTB is a strobe signal, which latches a datastate for output. The RAM 640 also receives a data input DATIN, and canprovide a data output DATOUT.

The 1-wire-to-3-wire conversion circuitry 630, in the preferredembodiment, interfaces from the external data line to a moreconventional 3-wire serial bus, which includes RESET, CLOCK, and twodata lines (DATIN and DATOUT). The control logic 620 also provides anoutput "210", which indicates when the counter is frozen. (This signalis used in implementing the reset logic, as discussed below.) The1-wire-to-3-wire conversion circuitry 630 provides a timing output QXF1,which corresponds to the output pulse of a one-shot. (this pulse may befrom 15 to 60 microseconds wide, and provides the basic timing referenceinside the token module.)

FIGS. 8A and 8B are two parts of a single Figure which shows the1-wire-to-3-wire conversion circuitry 630 which is used, in thepresently preferred embodiment, in the integrated circuit of FIG. 6.Every falling edge in the incoming data line IOPAD fires a one-shot madeof flip-flop 802 clocked by the falling edge propagating throughinverter chain 804 and with output driving feedback inverter chain805-806-807 which resets flip-flop 802. Resistor 808 and capacitor 809of inverter 806 provides an RC delay in the feedback reset; thusflip-flop 802 has a high output for a fixed time interval before beingreset low. This timed high output from flip-flop 802 is a pulse thatfeeds inverter 812 (which includes timing resistor 813 and capacitor814), that clocks flip-flop 815, and that also appears on the line QXF1.(This pulse, in the presently preferred embodiment, has a width of 15-60microseconds, and provides the time reference within the module.) Inturn, every falling edge of signal QXF1 coincides with a short pulse(about 1.5 microseconds wide) on the CLOCK line which is generated byNAND gate 818 with one input driven by the direct output of inverter 819and the other input driven by the output of inverts 819 delayed by theRC delay of inverter 812. The falling edge of the QXF1 pulse alsocoincides with the clocking of flip-flop 815, so the data bit value fromIOPAD at this time is loaded into flip-flop 815 and appears on lineDATIN. RESET signals are generated by simple logic which implements theconditions for reset, as described below, with CLOCK clocking flip-flop830 and the output of flip-flop 830 forming the RESET signal plusfeeding back through inverter 832 (which includes resistor 833 andcapacitor 834 for an RC delay) to the reset input of flip-flop 830.

FIGS. 9A and 9B are two parts of a single Figure which shows the controllogic used, in the presently preferred embodiment, in the integratedcircuit of FIG. 6. After the protocol register 920 (made of flip-flops921-928 and clocked by CLOCK through inverted-input OR gate 930 whichalso receives feedback from the Not Q output of the flip-flop 928 toblock further clocking) has been loaded, counter chain 910 countssuccessive clock pulses. (Every falling edge on the data line will leadto a clock pulse within the module, and these pulses are counted bycounter 910 which is made of flip-flops 911-919 and 908-909. Counter 910is clocked by the output of inverter-input OR gate 932 which, in turn,is driven by feedback from flip-flop 919 and NAND gate 934. NAND gate934 has inputs from inverted-input OR gate 936 and flip-flop 938. ORgate 936 has inputs from NAND gate 940-941 which have input signals fromAND gate 943 (which is high precisely when flip-flops 921-925 have highoutputs), flip-flop 945 (driven by the output of flip-flop 928), and theoutput of flip-flop 928. Flip-flop 938 is clocked by the output of NANDgate 950 which has inputs CLOCK and the output of flip-flop 928.) Thecounter 910 has feedback from flip-flop 919 which will intercept theclock signal (to freeze the counter), and activate signal 210, as soonas 256 bits of data have been read or written. (Note that the counterchain shown actually includes two more stages (flip-flops 908-909) thanare needed. This permits ready modification for 1024-bit embodiments.)Register 920 receives the protocol word. The stages of this register areconnected so that a RESET will set the first stage, and clear the otherstages. Thus, when a 1 propagates through to the last stage, a protocolword has been loaded.

FIG. 4 shows the format of the protocol word, in the module of thepresently preferred embodiment. Note that the first bit of the protocolword is always a 1. Note also that two bits have been reversed formodule identification. Thus, memory expansion can be easily achieved bywiring as many as four memory chips in parallel, in a single tokenmodule. Note also that the read/write selection bits provide significantprotection against accidental writes, in a high-noise environment.

Low-Voltage SRAM Architecture

Among the innovative teachings set forth in the present application is alow-power low-voltage CMOS six-transistor static random access memory(SRAM), which can operate on a power supply voltage which is less thanthe sum of the NMOS and PMOS threshold voltages, and which does notinclude any analog or metastable sense amplifier stages. The selectedcell is allowed to pull one of its bitline pair all the way down toground. Thus, full logic levels appear on the bit line pair. Only oneline of the bitline pair is connected to the following gate stage.Preferably bitline precharge transistors are connected to pull up allbitline pairs whenever the RAM is not selected.

Process Characteristics

In applications such as those of the preferred system embodiment, it ishighly desirable to minimize unnecessary charge consumption. Inparticular, this means that the area-specific junction leakage of thesemiconductor material, for the source/drain junctions, at 5 Volts andat 25 C., should be low (preferably much less than 1 femtoAmperes persquare micron). For example, the process used in the presently preferredembodiment has junction leakage, for the source/drain junctions, in theneighborhood of about 100-200 attoAmperes per square micron at 25 C. andat 5 Volts. (As is well know, this parameter has a strong temperaturedependence. For example, the process used in the presently preferredembodiment has junction leakage, for the source/drain junctions, in theneighborhood of a few femtoAmperes per square micron at 25 C. and at 5Volts.) Such low leakage is achieved, as is well known to those in thesemiconductor art, by using good quality monocrystalline siliconstarting material with low levels of carbon and transition metals;optionally, growing epitaxial silicon on the starting wafers; rigorouslyisolating wafers in process from heavy metal contamination; minimizingthe exposure of wafers in process to ionizing radiation, from sourcessuch as implanters; and other such well-known precautions.

Electrical Organization

FIG. 10 shows the electrical organization of the RAM 640, in thepresently preferred embodiment, in the integrated circuit of FIG. 6.Five address bits are connected to row predecoder/decoder 1010 and givebits are connected to column predecoder/decoder 1020. (As noted above,it is contemplated that expansion to an array of 1024 bits may beadvantageous, and the extra address bits are provided for thiscontingency.). The eight primary address bits provide 16 select lines,to the 16 parallel block of column driver logic 1030, to select acolumn. The column driver logic contains precharge transistors, and alsocontains pass gates which connect the selected column to a write drivercircuit 1032 (in write mode) or to sense amplifier 1034 (in read mode).

The column lines (bitline pairs) are always held high when the memory isdeselected. When the memory is selected, the bitline pairs are floated(until a row of cells turns on, and beings to pull down one side of eachbitline pair). This always-high operation helps to provide powerefficiency: one-half of the bitlines are discharged for each one-bitdata access, but not under any other circumstance. Thus, the net chargeconsumption per access is acceptably low.

Sense Amplification and Output

The "sense amplifier" circuit 1034 does not function at all similarly toa conventional memory sense amplifier: this amplifier is a simpledigital circuit, which receives a single-ended output, from only one ofthe bitlines in a bitline pair. (However, the write driver isdouble-ended, since one of the bitlines must be driven low.)

FIG. 14 shows the bitline precharge and pull-up logic used for eachcolumn of the memory of FIG. 10, in the presently preferred embodiment.Note that full CMOS transmission gates are used to pass the output ofthe preselected column. (This is required by the low operating voltagepermitted in the presently preferred embodiment. PMOS transistors 1420,when gated by signal EC, precharge the bitline pair C and CB to V_(DD).When a selected cell beings to pull down one side of the bitline pair(either line C or line CB), one of the cross-coupled PMOS transistors1430 will turn on (after the line sinks below V_(DD) -V_(TP)) to holdthe other side of the bitline high. (Since the bitline was alreadyprecharged high, this transistor is not expected to source large amountsof current. These transistors are provided primarily to avoid the riskof a floating node.)

FIG. 13 shows the single-ended sense amplification stage used in thememory of FIG. 10, in the presently preferred embodiment. The inputlabelled D is one side of a column bitline pair C and CB, selected byone of the selection gates shown in FIG. 14. Note that the first stageinverter 1310 is preferably asymmetric. In the presently preferredembodiment, this inverter includes a PMOS device which is 30 micronswide and 1.2 microns long, and an NMOS device which is 3 microns wideand 3 microns. This asymmetry helps to assure that inverter 1310 willswitch strongly as soon as it receives a signal from a bitline which isbeing pulled down by the driver transistor in a cell. (In a normal CMOScircuit, this asymmetry would shift the trip point of the logic stage.However, in this low-voltage logic, this is not true, due to thehysteresis effect discussed above with reference to FIGS. 5A and 5B.)The output of inverter 1310 is loaded by capacitor 1320. This capacitiveloading helps to provide data hold time after signal SDOUTB ends. Thefollowing inverters, in the preferred embodiment, have more normalrelative device sizings (nominal W/L: PMOS 10/1.2, NMOS 5/1.2). Theresulting logical signal is fed into a gated latch 1330, which isclocked by signal SDOUTB. Note that the latch is clocked in two places,so that the feedback connection is broken (by full CMOS transmissiongate 1332) whenever full CMOS transmission gate 1334 turns on to admit anew data value. This prevents contention and saves power.

RAM/ROM Hybrid Memory

Another innovative teaching set forth in the present application is amemory cell which can operate as a static RAM, or can be programmed tooperate as a ROM cell. Thus users who need the extra security permittedby ROM encoding can have this capability, while users who do not needROM encoding can use off-the-shelf parts as RAM only.

FIG. 11 shows an innovative memory cell, which can operate as a RAMcell, or which can be programmed to operate as a ROM cell. The signal REis itself derived from a fuse, and, if ROM operation has not beenenabled, this signal will be low. Thus, in RAM mode, the cross-coupledinverters 1110 will provide normal latch operation, selectively accessedby pass transistors 1120.

When it is desired to convert a block of memory to ROM, a fuse is blownto hold the RE signal high. In addition, one of the two fuses 1130 isblown in each cell, to encode either a "1" or a "0". Thereafter, one ofthe two nodes of the latch will always be pulled to ground. Even if thecell is addressed in a write operation, the connection to ground willeasily overpower the PMOS load transistor, to hold the latch in itspermanently programmed state. (In the presently preferred embodiment,the NMOS driver transistors in the inverters 1110 each have nominal W/Ldimensions of 8/1.2 microns, the PMOS load transistors in the inverters1110 each have nominal W/L dimensions of 6/6 microns, and the NMOSROM-mode transistors 1140 and the NMOS pass transistors 1120 each havenominal W/L dimensions of 4/1.2 microns.)

ESD Protection

The systems environment described above means that the data modules facesome unusual integrity requirements. Since the modules may be exposed tovery rough treatment, in consumer and industrial environments, theyshould preferably have a very high level of immunity to electrostaticdischarge (ESD).

ESD Protection Diode Profile

Referring now to FIG. 16B, there is illustrated a cross-sectionaldiagram of a semiconductor substrate 10 utilizing a prior art batteryprotection device. In this type of device, a battery terminal 12 isprovided for being connected to a battery (not shown) and an externalvoltage terminal 14 is provided for being connected to an external(system) supply voltage V_(EXT). The battery terminal 12 is typically ata lower voltage than the external supply voltage V_(EXT). For example,the battery voltage for most battery-backed systems is typically aroundthree volts, whereas the external voltage V_(EXT) is typically aroundfive volts.

The external supply terminal 14 is connected to the substrate 10, whichis an N-type semiconductor substrate in this example, through an n+contact region 16. The battery terminal 12 is connected to a P-well 18through a p+ contact region 20. The boundary of the P-well 18 forms a PNjunction 22. Therefore, when the N-type substrate 10 is at a lowerpotential than the battery terminal 12, current will flow through theforward biased PN junction 22 from the battery terminal 12. However,when the external supply terminal 14 is a higher voltage than thebattery terminal 12, the PN junction 22 is reverse biased and blockscurrent. This essentially prevents current flowing from the externalterminal 14 to the battery terminal 12 and thus charging the battery.

In a typical CMOS semiconductor device utilizing P-wells and N-wells ina twin-tub process, there will be additional P-wells that are separatedfrom the P-well 18. One of these is represented by a P-well 24, which isdisposed in the N-type substrate 10 and separated from the P-well 18 bya predetermined minimum spacing in the N-type substrate 10. A PNjunction 25 is formed between the N-type substrate 10 and the P-well 24.The P-well 24 can be utilized to configure any type of device. In orderto contact the P-well 24, a p+ contact 26 is provided which is connectedto an external circuit terminal 28. It should be understood that theillustrated structure merely represents a partial example of such aP-well structure. (For example, such a P-well would usually include atleast two shallow N+ diffusions, to provide the source/drain regions ofan MOS transistor. Such a P-well may contain three or more such N+diffusions, to provide more than one transistor, and may also beconfigured to provide other elements as well, e.g. diodes orcapacitors.)

A problem arises with the prior art device whenever the external voltagefalls (e.g. when the terminal 14 is disconnected from V_(EXT), or thesystem power supply fails), so that the external circuit terminal 28 isconnected to a voltage lower than the battery terminal. In the structureshown in FIG. 16B, this will reverse bias the PN junction 25. In thismode, minority carriers (holes, in this example) which are injected intothe substrate 10 at the forward biased PN junction 22 can be collectedat the PN junction 25. This results in the formation of a leakyparasitic PNP transistor. This parasitic PNP transistor is illustratedin FIG. 16C. This transport of holes creates a net current, from thebattery terminal 12 to the ground terminal 28, which dissipates power.

The parasitic transistor of FIG. 16C has the emitter junction formedbetween the P-well 18 and the N-type substrate 10 with the batteryterminal 12 providing the emitter terminal. The base is formed by theN-type substrate 10 with the base terminal comprising the externalvoltage terminal 14. The collector junction is formed between the P-well24 and the n-type substrate 10 with the external circuit terminal 28representing the collector terminal. It can be seen that whenever theexternal voltage terminal 14 is disconnected, the parasitic transistorillustrated in FIG. 16 C passes leakage current. This results in leakagecurrent, which, in a relatively low power device, can comprise asignificant portion of the supply current, since there are usually anumber of adjacent P-wells on the substrate with a parasitic transistorconnected to each of the adjacent P-wells. Since the bases of all ofthese transistors will be common, this effectively forms amulti-collector parasitic transistor.

FIGS. 2 to 8 show two important embodiments of the disclosed innovativediode structure. In each, the battery power input is connected through afirst junction 111, so that the battery cannot be charged when theexternal (system) power supply is active. The battery isolation diodejunction 111 is surrounded by a second junction 112. In the embodimentof FIG. 16D, the first junction 111 is the boundary of P+ first region36 and N-type second region 34, and the second junction 112 is theboundary of N-type second region 34 with P-type third region (P-well)32. In the embodiment of FIG. 16K, the first junction 111 is theboundary of P-type first region 121 and N-type second region 122, andthe second junction 112 is the boundary of P-type first region portion121B with P-type third region 113. Note that, in FIG. 16D, the secondregion 34 encloses the first region 36, whereas, in the embodiment ofFIG. 16I, the first region 121 encloses the second region 122.

The second junction 112 is preferably shorted out, by a wired connectionwhich makes ohmic contact to the semiconductor regions on both sides ofthe junction. In the embodiment of FIG. 16D, the wiring 43 which shortsout the second junction makes ohmic contact to the second region 34 atN+ diffusion 40, and makes ohmic contact to the third region 32 at P+diffusion 38, and is also ohmically connected to N-type extended region(substrate) 30 at N+ diffusion 42, and is also tied to external supplyvoltage V_(EXT). In the embodiment of FIG. 16K, the wiring 131 whichshorts out the second junction makes ohmic contact to the first region121 at P+ diffusion 121A, and makes ohmic contact to the third region113 at N+ diffusion 113A, and is also ohmically connected to the batteryterminal V_(BAT).

The built-in potential of second junction 112 provides efficientcollection of minority carriers, which will recombine in theneighborhood of this junction. Thus, the second junction collects theminority carriers which can be generated when the first junction 111 isforward biased (i.e. when the integrated circuit is being powered fromthe battery). Otherwise, minority carriers could diffuse to otherjunctions, to cause leakage currents which can significantly degrade thelifetime of a low-powered device.

Note also that the structures of FIG. 16D and FIG. 16K both include anintermediate-depth diffusion, with a junction depth which issignificantly deeper than the source/drain junction depth, butsignificantly shallower than the depth of the well. In the embodiment ofFIG. 16D, this intermediate-depth diffusion is provided by the N-typesecond region 34. In the embodiment of FIG. 16K, this intermediate-depthdiffusion is provided by the P-type first region portion 121A.

Referring now to FIG. 16D, there is illustrated a cross-sectionaldiagram of a preferred embodiment of the disclosed innovative batteryprotection circuit, as implemented in an N-type substrate 30. A P-well32 is formed in the N-type substrate 30, having a depth of approximatelyfour microns. An N-type region 34 is formed in the P-well 32 to a depthof approximately 0.8 microns. A p+ region 36 is formed within the N-typeregion 34. In this sample embodiment, the p+ region 36 has a thicknessof approximately 0.4 microns. A p+ contact 38 is provided that surroundsor forms a ring around the N-type region 34 to provide a contact to theP-well 32. In a similar manner, an n+ contact 40 is provided thatsurrounds the p+ region 36 to provide contact form the surface to theN-type region 34. An n+ contact 42 is provided in the N-type substrate30 outside the boundaries of the P-well 32. The external voltageterminal 14, having the voltage V_(EXT) connected thereto, is interfacedwith the n+ region 42. In a similar manner, the battery terminal 12 isinterfaced with the p+ region 38 and to the n+ region 40 through aninterconnect line 43.

The P-well 24 and associated p+ region 26 and external circuit terminal28 are also provided in the substrate 30 to illustrate the formation ofthe reverse biased PN junction 25. As will be described hereinbelow, thedisclosed innovative battery protection circuit prevents conduction fromthe battery terminal 12 to the PN junction 25 when the PN junction 25 isreverse biased. For illustrative purposes, the external circuit terminal28 is connected to a voltage lower than the battery terminal, forexample, zero volts.

The parasitic transistors formed in the structure of FIG. 16D areillustrated in FIG. 16E. A first PNP transistor 44 is formed having theemitter thereof connected to the battery terminal 12, the base thereofconnected to the collector thereof and the collector thereof connectedto the emitter of a second PNP transistor 46. The second PNP transistor46 has the base thereof connected to the external supply terminal 14 andalso connected to the emitter thereof. The collector of the second PNPtransistor 46 is connected to the external circuit terminal 28. Thetransistor 44 has the emitter thereof formed by the function between thep+ region 36 and the N-type region 34, the base thereof formed by theN-type region 34 and the collector thereof formed by the junctionbetween the N-type region 34 and the P-well 32. The transistor 46 hasthe emitter thereof formed by the junction between the P-well 32 and theN-type region 30, the base thereof formed by the n-type region 30 andthe collector thereof formed by the junction between the n-type region30 and the P-well 24.

In operation, he P-type transistor 44 has the base thereof connected tothe collector, and thus, it is configured as a diode. This allowscurrent to flow through the collector of transistor 44 when the batteryterminal 12 is at a higher voltage than the N-type substrate 30.However, the emitter-to-base junction of transistor 46 is shorted,thereby inhibiting operation fo the transistor 46. Therefore, when theexternal voltage terminal 14 is at a lower voltage than the batteryterminal 12, there is no parasitic transistor operation that results inleakage from the battery terminal 12 to the P-well 24.

Referring further to FIGS. 2 and 3, conduction in the parasitictransistor of the prior art normally occurs as a result of minoritycarriers being injected into the N-type substrate 30 and being connectedin the P-well 24. This collection is a result of the reverse biased PNjunction 25. In order to prevent conduction in the parasitic transistor,it is necessary to prevent either injection of the minority carriersinto the N-type substrate 30, or prevent subsequent collection thereofby the P-well 24. This, in effect, kills the gain of the parasitictransistor.

In the disclosed innovative battery protection circuit, the minoritycarriers exist in the n-type region 34 as holes. The P-well 32 is biasedat the same potential as the N-region 34 and therefore acts as acollector for the minority carriers or holes. However, it should beunderstood that nay barrier which prevents migration of minoritycarriers over to the PN junction 25 to allow collection thereby theP-well 32 will produce the same result. For example, an insulating layercould be utilized that totally encloses the N-type region 34, whichinsulator would adequately prevent minority carrier injection. Further,the holes, which are collected in the P-well 32, could be recombined ina very heavily doped N-type region that was disposed around the N-region34 in place of the P-well 32. This would effectively perform arecombination of the holes therein to prevent the holes from migratinginto the N-type substrate 30. This heavily dopes N-type region couldalso be disposed around the P-well 24.

With further reference to FIG. 16D, the P-well 32 is provided as acollector of minority carriers. The purpose of the electrical connection43 is to provide a path for free electrons or majority carriers. Theholes generated in the N-type region 34 as a result of the forwardbiased PN junction between p+ region 36 and N-type region 34 arerecombined at the junction between the electrical connection 43 and then+ region 40, thus preventing the minority carriers from flowing throughelectrical connection 43 to the N-type substrate 30. It is possible thatthis electrical connection 43 could be replaced by a conductive n+ +plugthat is disposed through the P-well 32 to the N-type substrate 30 toconnect the N-region 34 and the N-type substrate 30. However, anelectrical connection would still be required between the P-well 32 andthe N-type region 34 to provide the correct bias therefore.

Although the just-described embodiments of the disclosed innovativebattery protection circuit were described with respect to an N-typesubstrate and parasitic PNP transistors, it should be understood thatthe dual of this structure could provide the same result wherein thebattery voltage were a negative voltage and the overall system operatedon a negative voltage. For example, the battery diode protection circuitwould now have an n+ region connected to the battery and a P-type regionproviding the other side of the diode. An N-well would be disposedtherearound isolating the diode from a P-type substrate. The N-wellwould provide the minority carrier isolation and act as a collectortherefore, the minority carriers being electrons in this case. Thiswould prevent minority carriers from being connected in an adjacentN-well to form a leaky NPN transistor.

Referring now to FIG. 16F there is illustrated a top-level diagram ofthe structure of FIG. 16D. The p+ region 36 is formed as an elongatedimplant that is surrounded by the n+ region 40. The n+ region 40 is inturn surrounded by the p+ region 38. The N-type region 34 to which then+ region 40 is connected, does not extend entirely under the n+ region40 to the exterior boundary thereof. Rather, the external boundary ofthe N-type region 34 is defined by a border 48. A detail of the N-typeregion 34 is illustrated in FIG. 16G. The P-well 32 is illustrated assurrounding the p+ region 38. The n+ region 42 is formed from anelongated implanted region that is disposed adjacent to the P-well 32.In a similar manner, the P-well 24 is also elongated and disposedadjacent the n+ region 42 with the p+ region 26 disposed within theP-well 24 and also having an elongated configuration.

In this embodiment, the disclosed innovative battery protection circuitis interleaved with a standard twin tub CMOS process flow. In thestandard process, N- and P-channel device regions are defined and then aP-well formed by implanting boron into the N-channel device region andan N-well formed by implanting phosphorous into the P-channel deviceregion. These implants are then driven down into the substrate and thenactive regions defined therein and separated by a layer of field oxide.Typically, a layer of nitride is disposed over a thin oxide layer todefine the active regions and then a field oxide grown on the portionsof the substrate not having nitride formed thereover.

After formation of the field oxide isolation regions, the residualnitride layers are removed. There is still a layer of gate oxide overthe active region remaining on the surface thereof. The surface is thenmasked for the implanting of the N-type region 34. This implant isachieved with phosphorous at an energy level of 180 KeV at a dosage of5×10⁻⁻ cm⁻². After implanting of the N-type region 34, the residualoxide on the surface of the active region is removed and then a stripgate oxide is formed over the substrate. The active regions are thenimplanted to adjust the transistor threshold voltages.

After threshold voltages are adjusted, the strip gate oxide is removedand the final gate oxidation is performed, followed by polysilicondeposition and subsequent doping thereof. The poly is then patterned andetched to define the various gates and interconnects at a first level ofpoly. The N-channel source and rain areas are then defined to form thesource/drain implants. This is an n+ implant utilizing arsenic, whichimplant is also utilized to form the n+ regions 40 and 42. The substrateis then masked to form the p+ source/drain implants, at which time thep+ regions 36, 38 and 26 are formed. Thereafter, the interlevel oxide isformed by depositing oxide thereover and this oxide is subjected to athermal cycle to reflow the oxide and to provide the source/drainactivation and drive steps. The subsequent contacts are then defined andetched and then a layer of metal deposited thereover. The metal layer isthen patterned and etched to define the various metal interconnects.

Referring now to FIG. 16H, there is illustrated a vertical dopantprofile through regions 36, 34, and 32 of FIG. 16D. The dopant profileillustrates that the p+ region 36 has a surface concentration ofapproximately 1×10²⁰ cm⁻³ and a thickness of approximately 0.35 microns.The N-type region 34 has a thickness of approximately 0.4 microns with apeak concentration of approximately 4×10¹⁷ cm⁻³. The concentration levelof the P-well 32 is approximately 1×10¹⁶ cm⁻³. Therefore, the PNPtransistor 44 formed by the p+ region 36, the N-type region 34 and thep-well region 32 has a base width of approximately 0.4 microns.

Referring now to FIG. 16I, there is illustrated an alternate embodimentof the disclosed innovative battery projection circuit. In thisalternate embodiment, the diode structure of the present invention isformed in an N-type substrate 50, which N-type substrate 50 is disposedover a layer of insulating material 52. This is normally referred to asSilicon-On-Insulator (SOI) technology. In this type of technology, anN-type substrate is first formed and then a layer of insulating materialformed on the lower surface thereof. The N-type substrate 50 istypically dimensioned to equal the thickness of the P-well 32 and theP-well 24 such that no N-type material is disposed therebelow. In thismanner, isolation between laterally disposed devices is increased.

There are numerous techniques for fabricating integrated circuitsutilizing SOI technology. Some of these techniques require formation ofthe active device on the surface of an N-type substrate followed bydeposition of a thick layer of oxide and polysilicon thereover. Thesubstrate is then held from the upper side and the lower surface thereofetched down a predetermined distance. Typically, some type of heavilydoped buried layer is implanted into the substrate to form an etch stoplayer. The insulator is then formed on the remaining surface of thesubstrate under the active devices, the thick layer of polysilicon andoxide removed and the final patterning performed on the upper surface ofthe substrate. However, this is only one technique and numerous othertechniques are available for realizing SOI technology.

Referring now to FIG. 16I, there is illustrated yet another embodimentof the disclosed innovative battery protection circuit. An N-typesubstrate 54 is provided upon which a layer of epitaxially grown N-typesemiconductor material 56 is grown. The P-well 24 and the P-well 32 arethen formed therein with the N-type epitaxial layer 56 having athickness approximately equal to that of the P-wells 24 and 32. TheN-type substrate 54 has a higher doping level than the epitaxial layer56, resulting in the parasitic transistors being confined primarily tothe epitaxial layer 56. The epitaxial layer 56 is formed utilizingconventional process well-known in the art.

In summary, there has been provided a battery protection device thatreduces leakage due to the existence of a parasitic PNP transistorbetween the battery terminal and an adjacent P-well. The batteryprotection device includes a diode that is enclosed by a layer of P-typematerial. The layer of P-type material is operable to collect minoritycarriers to prevent collection thereof by an adjacent P-well with areverse biased PN junction.

FIG. 16K shoes another embodiment of the disclosed innovative batteryprotection circuit, which has been found to be advantageous for use withP-type substrates. This is the embodiment which is preferably used, withthe layout shown in FIG. 16A, in the integrated circuit layout of FIG.6. Specifics for this embodiment will be described in the context of a1.2 micron CMOS process, but of course the process can readily be scaledor modified, as will be apparent to skilled CMOS designers and processengineers.

The substrate 140, in this embodiment, is P-type silicon, doped to abulk resistivity in the neighborhood of 30-40 ohm-cm. The substrate isshown ohmically connected to ground through a shallow P+ diffusion 140A,but in addition to (or instead of) this contact, a backside contact mayalso be used for connection to ground.

An N-well 113 has essentially the same doping profile as the N-wellswhich are used to build PMOS active devices, and is formed in the sameseries of implantation and drive steps. In this sample embodiment, theN-well is about 4 microns deep, and has a vertically graded dopantconcentration in the neighborhood of 2-3×10¹⁶ cm⁻³. A shallow N+diffusion 113A is formed inside this region, by using the same implantas is used to form the N+ source/drain regions in the active deviceregions. This shallow N+ diffusion will normally be quite heavily doped,but the depth and concentration of this region are not particularlycritical for purposes of the structure of FIG. 16K. Typically theconcentration might be in the range of 1×10¹⁹ cm⁻³ to 3 E²⁰ cm⁻³, withan effective depth in the neighborhood of 0.3 microns. The shallow N+diffusion 113A provides ohmic contact to wiring 131, which iselectrically connected to the battery voltage V_(BAT).

An intermediate-depth P-type region 121 is formed inside the N-well 113.In the presently preferred embodiment, this is formed by implantingboron at an areal does in the approximate range of 6×10¹³ cm⁻² to 1×10¹⁴cm⁻² at an energy of about 30 keV, but of course other odes or energiescan be substituted.

A shallow N+ diffusion 122 is formed inside the region 121, by using thesame implant as is used to form the n+ source/drain regions in theactive device regions. This shallow N+ diffusion will normally be quiteheavily doped, but the depth and concentration of this region are notparticularly critical for purposes of the structure of FIG. 16K.Typically the concentration might be in the range of 1×10¹⁹ cm⁻³ to3×10²⁰ cm⁻³, with an effective depth in the neighborhood of 0.3 microns.The N+ diffusion 122 makes ohmic contact to wiring 133, which is routedto provide the V_(DD) on-chip supply voltage for the active circuits onthe chip.

A shallow P+ diffusion 121A is also formed inside the region 121B, byusing the same implant as is used to form the P+ source/drain regions inthe active device regions. This shallow P+ diffusion will normally bequite heavily dopes, but the depth and concentration of this region arenot particularly critical for purposes of the structure of FIG. 16K.Typically the concentration might be in the range of 1×10¹⁹ cm⁻³ to3×10²⁰ cm⁻³, with an effective depth in the neighborhood of 0.3 microns.The shallow P+ diffusion 121A provides ohmic contact to wiring 131,which is electrically connected to the battery voltage V_(BAT).

FIG. 16L shows a test structure which is similar to the device structureof FIG. 16K, and FIG. 16M shows test data for this structure. Inrecording this data, collector terminal (marked I_(C) in FIG. 16L) wasconnected to the emitter terminal (marked I_(E)). The battery was heldat a constant voltage V_(BAT) =3 V. The battery current I_(B) andsubstrate current I_(SUB) were measured as a function fo the emittercurrent I_(E) drawn from the second region 122. Thus, two curves areshown in this log--log plot. Note that the substrate current I_(SUB)remains down in the noise level until the emitter current I_(E) becomesquite large. (This low value of the substrate current is highlyadvantageous.) At the point circled on the I_(B) curve, I_(E) =-2.512Ma, and I_(B) =2.510 mA. At the point marked with an asterisk on theI_(SUB) curve, I_(E) =-2.512 mA, and I_(SUB) =-45 pA.

FIG. 16N shows a further alternative embodiment, wherein a diffusionstructure is connected to provide ESD protection for an I/O connectionof a battery-powered integrated circuit. Note that the region 122 is notconnected to provide a V_(DD) output, but instead if connected to aninput/out line 134. (The I/O terminal can also optionally be connectedto a transistor gate, for amplification of incoming data signals, buthit is not necessary.) The I/O line 134 is also connected to be drivenby an NMOS output driver 150. This transistor, as shown, includes afirst source/drain diffusion 151, which is ohmically connected to theI/O line 134, a second source/drain diffusion 152, which is ohmicallyconnected to ground, and a gate 153 which can be driven by a data-outputsignal DO-bar. (Of course, other device structures, such as addition ESDprotection structures, can optionally be combined with the structureshown.)

The structure of FIG. 16N, in the preferred embodiment, uses severalenclosure relationships in its geometry. The central diffusion 122 isshown small, for clarity, but may itself be large. The P+ diffusion 121Apreferably runs all around the P-type intermediate diffusion 121. Aspresently contemplated, lateral dimensions for this example are asfollows. (However, it must be understood that these dimensions areintended to be purely illustrative, and should not be strictly reliedon. These dimensions are included merely to help show the inventors'present views as to the best mode of practicing this embodiment of theinvention.) The N+ diffusion 122 is preferably separated from P+diffusion 121A by a minimum spacing of at least 3 microns (in a 1.2micron layout), and the ring diffusion 121A is preferably at least 5microns wide. The N+ diffusion 113A preferably runs in a ring all aroundthe edge of the well 113. The N+ diffusion 122 is preferably at least 5microns wide, and is separated from the P+ diffusion 122 by at least 3microns. The P+ diffusion 140B, in the substrate 140, preferably runsall the way around the outside of the N-well 113. The minimum spacingbetween P+ diffusion 140B and N+ diffusion 113A is preferably at least 3microns, and P+ diffusion 140B is preferably at least 5 microns wide.

The output transistor 150 is preferably surrounded by a ring 154 ofN-well, and this ring is tied to ground through a shallow N+ diffusion155 at its surface.

The structure of FIG. 16N has the advantage that, when a negativetransient appears on the I/O line 134 for any reason (such as electricalnoise on a line, or electrostatic discharge), most of the current sourceto this negative transient will be taken from the junction 111, ratherthan from the output transistor. Thus, minority carrier diffusion todischarge the battery is minimized, and battery lifetime is notdecreased by such transient events. This advantageously provides asystem which is longer-lived and more reliable. However, when the I/Oline 134 is in its normal range of positive voltages (e.g. during normaloperation at TTL levels), the first junction in the diode structure willbe reverse biased, and will not load the line 134.

FIG. 16P is a log--log plot of data for the device structure of FIG.16N. A controlled current sink I_(DQ) is applied to the I/O connection134, and two current components are measured as a function of I_(DQ) :the current I_(BAT) drawn from the supply voltage V_(BAT), and thecurrent component I_(GND) drawn from the ground connection. At the pointcircled on the I_(BAT) curve, I_(DQ) =-10.00 mA, and I_(BAT) =18.15microA. At the point marked with an asterisk on the I_(GND) curve,I_(DQ) =-10.00 mA, and I_(GND) =9.982 mA.

In the structure measured in FIG. 16P, the effective area of the firstjunction 111 (which is protected by the second junction 112) isapproximately ten times that of the junction area in the outputtransistor 150 (which also can source current from ground). Thus, acurrent differential of about 10:1 might be expected, purely due to thegeometrical ratios. However, higher rations (almost 100:1) are actuallyachieved. Thus, FIG. 16P shows that the ratio of ground-sourced currentto battery-sourced current is greater than 500:1 is achieved for a 10 mAload, and even higher ratios can be achieved at lower load currents.

ESD Protection Diode Layout

FIG. 16A shows the layout of the ESD protection diode, in the presentlypreferred embodiment. This diode has doping profiles as just describedwith reference to FIG 16N. Note that the structure shown actuallyincludes two diodes in series: diode 618 provides the primaryprotection. Diode 619 is interposed between diode 618 and the substrate,to provide some additional protection. Note that the n+ pattern of diode619 is slightly different, to impose a longer current path. Thisprovides a slight series resistance between the power output and theactive circuits, which helps to isolate the active circuits from the ESDdischarges.

Note that the pattern shown includes rounded corners on the metal,n-well, and n+ patterns. These rounded corners help to reduce thegeometry-dependent electric field enhancement which would otherwiseoccur at corners.

It is contemplated that, for even greater ESD protection, it may bepreferable to narrow the width of the n+ diffusions in the diode layout.This would further reduce series resistance in the path of electrostaticdischarges.

The module of the presently preferred embodiment has been tested, andfound to withstand a 7000 V positive discharge, and to be capable ofwithstanding negative discharges greater than 10,000 V. (Under positivedischarges, data loss does not occur until 7000 V, and device damagedoes not begin to occur until 10000 V (one microAmp of leakage).Negative discharges cannot cause data loss or device damage untilvoltages greater than 10000 Volts (how much greater is not known.)

Operation

The implementation of data transfer operations, in the presentlypreferred embodiment, will now be described.

All communications to and from the token are accomplished via twophysical connections, the "Data" line, and the ground return line. Thereading and writing of token data is accomplished through the use oftime slots and a command word protocol.

Electrical I/O Relationships

The bus protocol is also designed to minimize the charge transfer out ofthe battery in the module. This is done by using an "open-collector"type architecture. The protocol has been specified so that the modulenever sources current to the data line, but only sinks current.

When a data module is in contact with a host system, the host systeminitially pulls up the data line. (The module also preferably contains avery high-impedance pull-down resistor at this node, but this is done,in the preferred embodiment, merely to avoid the risk of floatingnodes.) The host system initiates each stage of a data transferoperation by driving the data line low. The module detects this fallingedge, and one of several further events can then occur.

If the module is being read (as previously determined by overhead bits),the module, after seeing the falling edge which starts the cycle, eitherwill or will not turn on its NMOS pull-down transistor, depending on thevalue of the data bit being read at that cycle. When the NMOS pull-downis turned on, the module lets its preset timing period elapse, and thenturns off the NMOS pull-down. Thus, when the system wants to read fromthe module, it applies a falling edge, waits a short time to be surethat the module has received the falling edge, and then attempts to pullup the data line, using a pull-up resistor which cannot overpower theNMOS pull-down transistor in the module. After waiting a sufficient timefor the pull-up resistor to have raised the line to a high level (if theNMOS pull-down is off), the system tests the data voltage to ascertainthe data bit. The system then waits for the maximum time period of themodule delay to elapse, plus enough time for the data line to stabilizeat a high level, and then sends another falling edge to read the nextbit.

If the module is being written to (as previously determined by theoverhead bits), the module, after seeing the falling edge which startsthe cycle, waits for its preset timing period to elapse, and then storesthe logic value of the data line. Thus, when the system wants to writeto the module, it applies a falling edge, and then drives the data lineeither high or low, depending on the data bit. The system then waits forthe maximum time period of the module delay to elapse, restores the dataline to a high level, allows enough additional time for the data line tostabilize at a high level (and for the edge detector in the module toreset itself), and then sends another falling edge to write the nextbit.

All Data Transfer operations are performed by initially setting thetoken into a known state, issuing a Command Word, and then performingthe selected operation, either reading the contents of the token orwriting new data into the token. Each Data Transfer operation consistsof 264 Data Time Slots: 8 are for the Command Word and 256 are for thedata bits.

To initially set the token into a known state, when a new token is firstinserted into a host system, either 264 or 1032 Write Zero Time Slotsare issued (depending on the memory density). These Write Zero TimeSlots will not corrupt the data held within the token since a CommandWord has not been written. This operation will increment the addresspointer internal to the token to its maximum count value. Upon reachingthis maximum value, the token will ignore all additional Write Zero TimeSlots issued to it and the internal address pointer will remain lockedat the top count value. (This backed condition is removed by the issuingof a Write One Time Slot.)

Once the token has been set into a known state, a Command Word istransmitted to the token, using 8 Wire Data Time Slots. This resets theaddress pointer internal to the token and prepares it for theappropriate operation, either a read or a write.

After the Command Word has been transmitted to the token, theappropriate number of Data Time Slots will be issued to the token by thehost. In the case of a read operation, these will be Read Data TimeSlots. In the case of a write operation, these will be Write Data Timeslots. The exact number of Data Time Slots generated by the host isdependent upon the memory density of the part being used (256 or 1024).

Block Transfer

All data transfers are preferably done by reading or writing the entirecontents of memory as a single serial stream.

Overhead Bits

A command word, which is a short block of overhead bits, is sent fromthe host system to the portable module at the start of each transfer, todefine the transfer type. FIG. 4 shows the organization of the overheadbits which are used in each block transfer.

The Command Word consists of 8 bits which are transmitted from the hostto the token with write data time slots (FIG. 4). The first bit of theCommand Word must be set to a logic 1 level. The next two bits are theSelect Bits which relate to the part dash number. The remaining fivebits determine whether a read or a write operation is to follow. If awrite operation is to be performed, all five bits are set to a logic 1level. If a read operation is to be performed, any or all of these bitsare rest to a logic 0 level. Each of these bits is transmitted to thetoken with a separate write data time slot.

Address-Pointer Reset

When a host system first makes contact with a module, the host systemsends a long string of write-zero commands, followed by a write-onecommand, to the module. The module contains a counter, which monitorsthe incoming bit stream for nonstop sequences of write-zero commands. Ifthe module receives a nonstop sequence containing as many write-zerocommands as the total length of the memory, the counter will freezeuntil the chip is reset. The chip will be reset if and only if anincoming "1" bit is seen while the counter is frozen.

That is, in the presently preferred embodiment (256 bits of memory), thedata output of the last counter stage (indicating that the counter hasrolled over from 255 to 256) triggers a flip-flop whose output isconnected, through a NOR gate, to cut off the counter's clock input.

This provides a reset capability, whereby the system can ensure that thestarting address of the module is accurately known. Thus, on everyinsertion of a new module, the system can send such a reset sequence toinitialize the address pointer in the module. Note that thisaddress-pointer-reset is only necessary once per insertion. The sequenceof write-zero commands will not normally destroy data, because themodule never receives the overhead bit sequence which would tell it toenter write mode. (The only conditions under which data could bedestroyed by these commands is when the module has been interrupted inthe middle of a previous write sequence, and in this case the data maybe presumed corrupt anyway.)

Read/Write Timing

There are two types of write data time slots, Write One Time Slots andWrite Zero Time Slots. A write data time slot is initiated when the hostpulls the Data line from a high logic level to a low logic level. Allwrite data time slots must be a minimum of 60 microseconds i durationwith a minimum of 1 micro-second recovery time between write cycles. Inthis example, the crude time base in the module provides a range in thepossible time durations of a pulse width to time between pulses of 4:1:timing relations are defined with respect to a one-shot in the modulewhich will provide a pulse width of at least 15 microseconds (but notmore than 60 microseconds).

This one-shot is preferably trimmable, to a wide variety of speedranges. Moreover, other circuit arrangements could be used instead, togenerate a timing base. Thus, in the following example, the timingwindow of 15-60 microseconds does not delimit the claimed inventions,but merely serves to illustrate how the innovative one-wire bus protocolcan cope with timing uncertainty. The same principles of operation couldbe used if the modules were trimmed to have varying time delays withinthe range of (for example) 1-4 microseconds.

FIG. 2A is a timing diagram of a write-1 operation, in the module of thepresently preferred embodiment. For the host to perform a Write-1operation, the following steps occur:

1. The Data line is held at a high level for at least one microsecond.This ensures that the edge detector in the module will have sufficientset-up time.

2. The Data line is pulled to a logic low level. This provides thefalling edge which the module uses to time its operations from.

3. The Data line is then held low for at least one microsecond, toensure that the falling edge is detected by the module.

4. After the falling edge, the Data line must be driven high within 15microseconds, and held high for at least 60 microseconds (from the timeof the falling edge in Step 2). This ensures that the Data line will behigh when the pulse generated by the one-shot in the module ends. Whenthe pulse ends (producing a falling edge), the module will sample thelogic level of the data line, to determine whether a 0 or a 1 is thedata value.

Steps 1-4 can then be repeated, to write the next bit.

FIG. 2B is a timing diagram of a write-0 operation, in the module of thepresently preferred embodiment, The steps in this operation are the sameas the steps in a Write-1 operation, except that, in step 4, the Dataline is held low during the window of 15-60 microseconds after thefalling edge. This ensures that the Data line will be low at the end ofthe pulse generated by the one-shot in the module.

FIG. 3 is a timing diagram of a read operation, in the module of thepresently preferred embodiment. When data is to be read from the tokenby the host, the host will generate the read data time slots. A readdata time slot is initiated (as in steps 1-3 of the write-1 operation)when the host pulls the Data line from a logic high level to a logic lowlevel. As soon as the module sees this falling edge, it willconditionally turn on its pull-down transistor (depending on the valueof the data bit being read), and will leave the pull-down transistorturned on (conditionally) until the end of the pulse generated by theone-shot. Thus, during a read operation, after the falling edge (and thefollowing guard time), the host waits for enough time for the data lineto have been pulled up to a high level (if the module is not holding itdown), and then samples the data line. In the presently preferredembodiment, where the host port has a 5 Kilohm pull-up resistor, thehost preferably tests the data line 10 microseconds after the fallingedge. From 15 to 60 microseconds after the falling edge, the state ofthe data line is uncertain, since it is knot known whether the modulehas yet time out and released the data line. All read data time slotsmust be a minimum of 60 micro-seconds in duration, with a minimum of 1micro-second recovery time between read cycles.

The module's time base varies widely between pars, and may also be quitedependent on temperature (which will typically vary the batteryvoltage). However, the module's time base will not vary as widely frommoment to moment. Thus, in a less-preferred alternative embodiment, thehost can measure the time base of the module (by performing morefrequent samplings during a read operation), and maximize the data ratefor the particular module being read. However, this is not preferred,since the most preferred system embodiment will typically have onlybrief exchanges (one read, or one read plus one write) in each contactof a host with a particular module.

System Using Electronic Tokens

These innovative ideas are used as parts of a very innovative systemarchitecture. The electronic module enabled by the innovative teachingsherein is extremely compact and extremely cheap. From a systems point ofview, this module is in some ways more analogous to a read/write barcode than to a conventional electronic memory system.

Thus, this innovative module can be used for price tags, for inventorytags, for work-in-process monitoring, for retail sales (to permitcustomers to select merchandise (e.g. by taking one module or a handfulof modules to a cashier or to an automated check-out machine), withoutexposing the actual inventory to pilferage), and for a wide variety ofother such compact data-transfer applications. Thus, the innovativemodule described can be regarded as an electronic token, which is asportable and rugged as a metal token, but which is far more versatile.

Host System

An electronic token can be interfaced to by an open-collector pin in avery wide variety of microprocessors. Moreover, some port pins on somemicroprocessors have very weak pull-ups, so that these port pins couldalso be used. Alternatively, a microprocessor which did not have anysuch pins available could buffer its port through a standard TTLopen-collector buffer.

It is particularly advantageous to interface a token receiver to astandard microcomputer system, such as an 80286- or 80386-based PCclone.

FIG. 12 shows a simple example of a host system, which can interface toelectronic token modules like the module of FIG. 1. In this example, thetoken data line is taken from an open-collector pin of a microprocessor(such as a Motorola 68000). A 5 kilohm resistor 1204 provides a pull-upto V_(CC), and an open-drain driver 1202 amplifies transmitted signals.

Other sample embodiments of the host system will be discussed below,with reference to FIGS. 19 and 20.

Physical Interface for Receiving Electronic Tokens

Preferably each host system uses a physical configuration of electricalcontacts which provides rapid contact for electronic data modules(tokens). A slot, dimensioned to receive electronic tokens, includes agrounded contact positioned to make contact to the edge of a token whichmay be inserted, and two data contacts which are positioned to makecontact to the opposite faces of the token. Each of the data contacts isconnected to an open-collector driver circuit, including a pull-upresistor which will bring the potential of the contact high when theslot is empty. The token is shaped so that its edge, and one of itsfaces, are connected to the token's ground line, and the other face isthe token's data line. Thus, when a token is inserted (no matter whichway the token is facing), one of the two data contacts will beimmediately pulled to ground, by short-circuiting across the groundplane of the token. The system can thereby recognize that a token hasbeen inserted, and that the other data contact (the one which was notshorted to ground) can communicate with this token's data line. Thus,even though the token itself is asymmetric, and even through thedirectional orientation of the token is not initially known to thesystem, no physical asymmetry needs to be introduced into the token orthe slot to assure proper data interface.

FIG. 17 shows the configuration of contacts used, in one embodiment, ina host system to contact electronic tokens. A slot 1720 in a body 1710is dimensioned to accept a token (e.g. like the tokens of FIGS. 1A or1B). Contact 1736, in the bottom of the slot 1720, is positioned tocontact the edge of an inserted token. Contacts 1734 and 1732, onopposite sides of the slot 1720, will contact the two opposite faces ofthe token.

Thus, when a token like that in FIG. 1 is inserted into a slot like thatof FIG. 17, contact 1736 will always contact case portion 0100B. Caseportion 0100B will also contact one of the other contacts 1732/1734, andpull it to ground. Thus, when a token is inserted, the host system willsee one of the data lines DQ1/DQ2 pulled to ground. This tells the hostthat a token has been inserted, and it also tells the host which of thetwo data lines DQ1/DQ2 the token's data lead is connected to. (Thetoken's data lead will be found connected to the data lead which was notpulled to ground.)

Alternative Physical Interface--Hand-Held Wand

In an alternative embodiment, a wand provides rapid contact to atwo-terminal electronic token data module. The wand includes one contactwhich will make contact to the periphery of an electronic token whichthe wand is pressed against, and one contact which will make contact tothe center of the token. Preferably the wand includes a base portionwhich is shaped to be worn on the second joint of a user's finger. Thiswand can be used for very rapid manual contacting of electronic tokensin various physical positions. This can be very advantageous in avariety of data collection/updating applications such as retailcheckout, or tracking work-in-progress in acomputer-assisted-manufacturing environment.

FIGS. 15A, 15B, and 15C show the finger-mounted wand used, in thepresently preferred system embodiment, for manually contacting multipleelectronic tokens successively. This wand is particularly suitable forcontacting tokens which are firmly affixed to solid items, forapplications such as workpiece identification in computer-integratedmanufacturing, or inventory control, or equipment maintenance records.

FIGS. 15B and 15A shows the top portion 1510 of the wand of thepresently preferred embodiment. The entire structure shown, except forconductive ring 1518, is preferably molded from a non-conductivepolymer. A lip 1516 surrounds a recess which is dimensioned to mate withtokens of a known dimension. A thin ring of conductive polymer 1518circles the inner edge of the lip 1516. This ring will make the actualelectrical contact to the edge of a token. The ring 1518 providessufficient elastic deformation to assure that secure contact is made. Athrough-hole 1502 in the center of the recess carries a wire (not shown,for clarity) which contacts the center of the token when contact ismade. FIG. 15A shows the back side of the top portion 1510. Note thatanother through-hole 1504 permits a second wire (also not shown) tocontact the backside of conductive ring 1518. A groove 1514 permits thetwo wires to be led out, for connection to a host computer system.

FIG. 15C shows the finger-mounted base portion 1590, which preferably iscemented (or otherwise attached) to a top portion 1510, like that shownin FIGS. 15A and 15B. The flat surface 1592 is attached to flat surface1512 on the top portion 1510. Aperture 1594 is shaped to fit a user'sfinger. Preferably this is shaped to fit the second joint of the user'sfinger, unlike normal ring sizing, where the ring is placed on the firstjoint of the finger (nearest the palm).

Thus, the complete structure is compact, and can be easily worn on theuser's finger without interfering with other activities. The lead wirescan be connected to, for example, a belt-mounted small data-holdingcomputer unit, or to a belt-mounted RF interface unit.

Electrical Interface from Host System

The host system must have an open drain driver with a pull-up resistorof approximately 5 Kilohms to V_(CC) on the Data signal line. The tokenhas internally an open drain driver with a 500 Kilohm pulldown resistorto ground (FIG. 6). The open drain driver allows the token to be poweredby its small internal energy source and still have the ability toproduce sufficiently large voltage swings at the outputs. The pulldownresistor holds the Data input pin at ground potential when the token isnot connected to the host.

FIG. 18 shows the electrical driver configuration used on the host side,in one class of embodiments, to interface to electronic tokens. Twoopen-collector interfaces are provides, 1810A and 1810B. The data lineDQ₁, from a contacting fixture (e.g. like that shown in FIG. 17) isconnected to one of the interface circuits 1810S, and the other dataline DQ₂ is connected to the other interface circuit 1810B.

When the host system has not been communicating with a token, it cansimply poll the XOR value the two data input lines DI₁ and DI₂ to testfor the presence of a token. When a token has been inserted, the hostcan begin to drive the DQ line which was not pulled low by the insertionof the token. As discussed below, the host would normally issue a resetsequence, read the memory, and then (in some cases) write the memory.

Electrical Interface from Token to Standard RS232 Interface

The presently preferred embodiment also uses an innovative electricalinterface to the tokens, which permits interfacing to tokens with a widevariety of computers, including a tremendous variety of personal orother computers, as long as the computer includes an interface to RS232(or some comparable standard). The token has one-wire-bus interface,implemented in a battery-backed open-collector architecture, whichprovides a read-write interface. The communication protocol expected bythe token has been specified so that the token never sources current tothe data line, but only sinks current. The communication protocol alsoincludes time-domain relations which are reference to a very crude timebase in the token, and the system must preserve timing relations whichwill be satisfied by tokens in which the time base takes on any of thewide range of foreseeable speeds. To interface to this protocol, theprogrammable capabilities of the standard UART chip in the computer'sRS232 interface are exploited to provide adaptation of the time baserequirements of the module. This is done by writing an entire byte ofoutput from the UART, at a much higher baud rate than the module can berelied on to accept, to write a single bit of data into the module. Theread-data line (RX) of the UART is tied back to the transmit-data line(TX) through a resistor, so that the UART will also always report a readof the same data byte being written, unless the token has turned on itspull-down transistor. An electrical network is used at the interfacewhich (in effect) reverses the ground plane identification of the twoleads, but which does provide the correct signal polarity to the tokenfor signal discrimination in read mode.

FIG. 19 shows a network used, in the preferred version of thisembodiment, to interface from a serial port to an electronic token. Dataline 1900A contacts the data terminal 0100A of a token, and ground line1900B contacts the ground terminal 0100B of a token.

The example shown provides an interface to a standard PC's serial port.Lines RTS (pin 4) and DTR (pin 20) are used for a power supply in thisembodiment, but either of these pins could optionally be used aloneinstead. When interfacing to a token, lines DTR and RTS are driven to apositive voltage level, Zener diode 1910 holds the data line 1900A to aconstant potential at all times. In the presently preferred embodiment,Zener 1910 is a 5 V Zener.

The serial data out pin TX (pin 2) is used, with a series resistor 1912,to modulate the ground line 1900B which is connected to the groundcontact 0100B of the token. The serial data in pin RX (pin 3) is used toreceive data from the ground line 1900B. Thus, the token is in effectconnected backwards.

Schottky diodes 1910 and 1914 clamp the excursion of the ground line1900B. (These diodes can be implemented as a single 3-pindouble-Schottky-diode package.)

The reversed connection of the token turns out to be surprisinglyadvantageous. All of the RS232 interface chips presently on the marketprovide a trip point voltage of about 1.5 Volt (with about a half Voltof hysteresis). (This is not part of the formal RS232 specification,which simply defines the voltage range from -3 V to +3 V as a "deadzone".) Thus, this reversed connection, and the DC offset, assures thatthe modulation effected by the token module will fall into a rangearound the line receiver chip's trip point.

Software for Interfacing from Token to Standard UART

The TX and RX signals referred to above will normally by translated by aline/driver receiver chip (which converts the voltage levels to normallogical levels), and will then be connected to a universal asynchronousreceiver/transmitter (UART) chip.

Such UART chips are a widely used commercial part. They include logic toperform low-level signal formatting and manipulation, and byte-wideserial/parallel conversion of data streams. One example of a commonlyused UART chip, suitable for use in the embodiment of FIGS. 19 and 20,is an Intel 8250. However, a wide variety of other chips could be usedinstead.

UARTs are normally programmable, for parameters such as number of bits,baud rate, etc. Since each UART contains its own time base, timingparameters can specified to the UART without considering what the speedof operation of the overall system may be. (For example, the PC-typesystems currently in widespread use range from XTs operating at 4.77 MHzto 80386 systems operating at 33 MHz). In the presently preferredversion of this embodiment, the serial data lines are interfaced to aUART which has been programmed for operation at 115 kilobaud, with 1start bit, 6 data bits, and 1 stop bit per byte. However, theseparameters can readily be varied: for example, even without changing thespecific timing parameters of this embodiment, the number of data bitscan be increased to seven or eight or more without causing any problems.

FIG. 20 shows timing relations preferably used, in a sample embodiment,for interfacing from a standard RS232 port to an electronic token toperform a Write-0 operation. (These timing diagrams show signals withreference to the token's ground terminal, which, in this embodiment, isnot the same as system ground.) When the UART sends a start bit, thetoken sees the falling edge which starts its time window. The startbit's time slot guarantees that the line level will be held low for 8.68microseconds after the falling edge. Thereafter, the 6 data bits (allset to zero) keep the signal level low, from 8.68 microseconds after thefalling edge until 60.764 microseconds after the falling edge. Thus,whenever the one-shot pulse ends, and the token samples the data line,it will see the desired data value. This is achieved by writing anentire byte of output for each bit desired. After the data bits, thestop bit provides a high level for 8.68 microseconds, which is more thanlong enough to reset the edge detector n the token.

A write-1 operation is almost the same as the write-0 operation, exceptthat the data bits are all 1s (rather than all 0s).

The resistor 1912 means that signals driven onto the TX lie will beechoed on the RX line. This permits a simple read operation. After thetoken has been set into read mode, the host writes a byte of all 1s. Atthe same time, the receiving side of the UART will be receiving a byteof data. If the first received data bit is a zero, the host knows thatthe module has turned on its pull-down transistor. If the first receiveddata bit is a one, the host knows that the module has not turned on itspull-down transistor. The remaining data bits are ignored, since even ifthe pull-down transistor was on, the module may already have turned itoff at any time after 15 microseconds past the falling edge.

Source Code--Software Interface

In the presently preferred embodiment, the following code is used todrive the serial interface to a token. In this listing, "TBE" means"Transmit Buffer empty"; "TRSE" means "Transmit Shift Register Empty,"i.e. no data is currently being sent; "RDA" means "Received Data isAvailable," i.e. the receiver side of the UART is holding some data.

Thus, to perform a read operation, the host writes out hexadecimal byteFF_(H) (or 3F_(H) --with only six bits the two numbers appear the same.The first data bit in a byte is conventionally taken as the lestsignificant bit. Therefore, the received data byte an simply be testedto see whether it is odd or even.

    ______________________________________                                        This program performs a simple functionality test on a                        DS1272 with 256 bit capacity and select bits of zero. The                     DS1272 is connected to COM1.                                                  }                                                                             Uses CRT;  { Standard Pascal unit required for CRT control }                  Procedure WByte(S: Word; X: Byte);                                            {                                                                             This procedure sends out the byte X to the DS1272 connected                   to the serial port having port address S.                                     }                                                                             Var                                                                           I : Byte;                                                                     Begin                                                                         For I := 1 to 8 do Begin  { Send all eight bits in the byte }                 Repeat until Port[S + 5] and $20 = $20;                                       { Wait for TBE }                                                              If Odd(X) then Port[S] := $FF else Port[S] := 0;                              { Send bit }                                                                  X := X shr 1;  { Shift in the next bit }                                      End;                                                                          End;                                                                          Function RByte(S: Word): Byte;                                                {                                                                             This function returns one byte received from the DS1272                       connected to the serial port having port address S.                           }                                                                             Var                                                                           I, X, B : Byte;                                                               T       : LongInt Absolute $40:$6C;                                                                      { System timer                                                                tick }                                             M       : LongInt;           { Time limit }                                   Begin                                                                         X := 0;      { Collect the bits in X }                                        M := T + 1;  { Set the wait time limit }                                      For I := 1 to 8 do Begin { Receive all eight bits in the byte }               Repeat until Port[S + 5] and $40 = $40;                                       { Wait for TSRE }                                                             If Port[S + 5] and 1 = 1 then B := Port[S];                                   { Clear receiver }                                                            Port[S] := $FF;  { Send out read time slot }                                  X := X shr 1;  { Position byte to receive bit }                               Repeat until (Port[S + 5] and 1 = 1) or (T > M);                              { Wait for RDA }                                                              If T > M then B := $FF else B := Port[S];                                     { Get the bit }                                                               If Odd(B) then X := X or $80; { Put new bit into byte }                       End;                                                                          RByte := X;   { Return the received byte }                                    End;                                                                          Const                                                                         SB = 0;    { Select Bits are zero }                                           MS = 32;    { Memory Size is 32 bytes }                                       Type                                                                          DatAry = Array[0..31] of Byte; { Data transfer buffer type }                  Var                                                                           PA : Word Absolute $40:0; { Base port address of COM1 }                       S : String[31];  { String to collect message }                                DA : DatAry;  { Array of data to be transmitted }                             X, Y : Word;    { Position of cursor }                                        I : Byte;     { Array index }                                                 C : Char;     { Command character }                                           Begin       { Main program code begins here }                                 TextColor(Yellow); TextBackground(Blue); ClrScr;                              If PA = 0 then WriteLn(`COM1 does not exist.`) else Begin                     {                                                                             This section sets up the serial port with port address                        PA for 115200 baud with six data bits, one stop bit,                          and no parity.                                                                }                                                                             Port[PA + 3] := $81;  { Set the DLAB }                                        Port[PA + 0] := $01;  { Baud rate }                                           Port[PA + 1] := $00;  { is 115200 }                                           Port[PA + 3] := $01;  { 6 data, 1 stop, no parity }                           Port[PA + 1] := $00;  { No interrupts }                                       Port[PA + 4] := $03;  { RTS and DTR on }                                      {                                                                             The next section provides a simple option menu for                            exercising the functions of the DS1272.                                       }                                                                             C := `S`;   { Display options the first time through }                        While True do Begin                                                           If C = `S` then Begin                                                                 WriteLn(`DS1272 Test Program`); WriteLn;                                      WriteLn(`I = Initialize DS1272`);                                             WriteLn(`W = Write to DS1272`);                                               WriteLn(`R = Read from DS1272`);                                              WriteLn(`S = Show option list`);                                              WriteLn(`<ESC> = End program`);                                               WriteLn;                                                              End;                                                                          Write(`Option = `);                                                           Repeat                                                                                C := UpCase(ReadKey);                                                         If C = #27 then Begin                                                         { Abort if ESC is received }                                                    WriteLn(`<ESC>`);                                                             WriteLn; Halt;                                                              End;                                                                  Until (C = `I`) or (C = `W`) or (C = `R`) or                                  (C = `S`);                                                                    WriteLn(C);                                                                   Case C of                                                                             `I`: For I := 0 to MS do WByte(PA, 0);                                        { Initialize DS1272 }                                                         `W`: Begin                                                                      Write(`Data to write = [`); X := WhereX;                                      Y := Where Y;                                                                 Write(`    ]`); GotoXY(X, Y);                                                 ReadLn(S); DA := DatAry(S);                                                   { Transfer string to buffer }                                                 WByte(PA, SB shl 1 or $F9);                                                   { Send the command byte }                                                     For I := 0 to Pred(MS) do WByte(PA,                                           DA[I]); { Send data }                                                       End;                                                                          `R`: Begin                                                                      WByte(PA, SB shl 1 or 1);                                                     { Send the command byte }                                                     For I := 0 to Pred(MS) do DA[I] :=                                            RByte(PA);  { Get data }                                                      If DA[0] > 31 then DA[0] := 31;                                               { Limit length to 31 }                                                        For I := 1 to DA[0] do if (DA[I] <                                            Byte(` `))                                                                    or (DA[I] > Byte(`z`)) then DA[I] :=                                          Byte(`.`);                                                                    DatAry(S) := DA;                                                              { Transfer data to string }                                                   WriteLn(`Message Received = [`, S, `]`);                                      { Display it }                                                              End;                                                                  End;                                                                          WriteLn;                                                                      End;                                                                          End;                                                                          End.                                                                          ______________________________________                                    

Design Considerations

Since the token is designed to be used as a removable tagging device, itcan be viewed at the system level as a memory element plagued bynumerous cold solder joints. During either reading or writingoperations, physical contact with the token may be broken. This in turnwill cause either the received data to be erroneous or the transmitteddata to be incomplete. The recommended way around these problems is asfollows:

1) Read Operation

step 1--set token to a known state

step 2--issue a read Command Word

step 3--read the data into host memory

step 4--repeat steps 1 through 3 five times

step 5--use majority wings logic to derive data (i.e. 3 out of 5 wins)

2) Write Operation

step 1--set token into known state

step 2--issue a write Command Word

step 3--write data into token memory

step 4--perform Read Operation

step 5--compare host transmit data to received data

step 6--if not, equal, repeat steps 1 through 5.

Further Modifications and Variations

It will be recognized by those skilled in the art that the innovativeconcepts disclosed in the present application can be applied in a widevariety of contexts. Moreover, the preferred implementation can bemodified in a tremendous variety of ways. Accordingly, it should beunderstood that the modifications and variations suggested below andabove are merely illustrative. These examples may help to show some ofthe scope of the inventive concepts, but these examples do not nearlyexhaust the full scope of variations in the disclosed novel concepts.

For example, by including integrated circuits with more securityfeatures (such as a DS1207 TimeKey™ from Dallas SemiconductorCorporation), the innovative module bus architecture can also be usedfor applications where security is a high priority. Advantageousapplications of this type may include "smart cards", personnelidentification badges, and electronically verified currency.

For example, the RAM/ROM hybrid cell of FIG. 11 could alternatively beimplemented with EPROM-type transistors. In this case, the combinationof fuse 1130 and transistor 1140 would be replaced by a singlefloating-gate transistor. For another example, the laser-blown fuses1130 used in the presently preferred embodiment of FIG. 11 could bereplaced by electrically-blown fuses instead.

For another example, many advantages can be obtained by adapting thedisclosed innovative concepts to a module which included electricallyprogrammable elements (EEPROM memory or EEPAL logic) instead ofbattery-backed memory and logic. Such a module would be more expensive,and would require a modified bus protocol (so that the module could bepowered from the data line while in contact with the host).

For another example, the board in the innovative module of FIG. 1 can beflexible or rigid, and can be made of conventional or otherprinted-circuit-board construction. Similarly, the one or moreintegrated circuits in the module can be packaged in a SOIC or otherconventional package, or mounted using chip-on-board or chip-on-flextechniques, or mounted in other ways, as long as sufficient hermeticityis achieved. (Preferably the packaging technique is also selected tominimize cost.)

For another example, the innovative system and method disclosed forinterfacing an electronic token to an RS232 port an be applied to serialports using other standards. Even without exploiting the capabilities ofUART chips, tokens can be interfaced to a very wide variety of serialports, or to ports such as pins of the parallel printer pot on astandard PC.

The contents of the data filed in the module can be chosen by thesystems designer, and a wide variety of formats can be used. Of course,some additional software would normally be used on the host side forData Error Checking. For example, cyclic redundancy check bits may beencoded with the stored data, using a variety of methods.

Of course, a much more accurate time base in the module can be providedby using a higher battery voltage. However, the use of the low batteryvoltage of the presently preferred embodiment is advantageous inproviding low cost and low power consumption. It should be noted that(in line with the discussion above regarding FIGS. 5A and 5B) that amore accurate time base could also be achieved by modifying the CMOSprocessing to lower the transistors' threshold voltages V_(TP) andV_(TN). However, as is well known to those skilled in the art of CMOSdesign, such a modification would carry its own costs (e.g. increasedsubthreshold current), and therefore is not presently preferred.However, it is important to note that some of the advantages of some ofthe disclosed innovations could be realized in such an environment.

It must be understood that the many innovative teachings set forthherein can be used separately. For example, a symmetric two-sided tokenpackage could be used instead, with a contact in the center of eachface. This would not be as cheap nor as robust as the package of FIG.1A, but many of the innovative teachings could be adapted for use insuch an embodiment.

For another example, the charge consumption due to precharge of columnswhich are not being read during a memory access could be reduced byconfiguring the memory as multiple subarrays. (This might beparticularly advantageous when using larger memory sizes.)

For another example, the packaging of the module can be widely varied,even within the context of a module which interfaces to a one-wire bus.For example, it is contemplated that a standard connector configuration(such as a subminiature 3/32" phone plug) could be used to define pinplacement for a data module. While such configurations are believed tobe as advantageous as the principal preferred package embodiments, suchalternative package embodiments do have their own advantages, and manyof the innovative teachings set forth herein can be used in such acontext.

As will be recognized by those skilled in the art, the innovativeconcepts described in the present application can be modified and variedover a tremendous range of applications, and accordingly their scope isnot limited except by the allowed claims.

What is claimed is:
 1. An electronic token, comprising:(a) a casinghaving a first conductive surface and a second conductive surface, saidfirst conductive surface and said second conductive surface accessiblefrom an exterior of said casing, said first conductive surface and saidsecond conductive surface combine a substantial portion of said casing,said first conductive surface and said second conductive surface combineto form a cavity; (b) an energy source positioned in said cavity; (c) asemiconductor memory positioned in said cavity, said semiconductormemory electrically coupled to said energy source; (d) input logicoperatively electrically coupled to said first conductive surface and tosaid second conductive surface of said casing and configured to detectwhether said first conductive surface is at a first voltage or at asecond voltage and selectably to store data in said semiconductor memoryaccordingly, said input logic electrically coupled to said energysource; and (e) output logic comprising an active device electricallycoupled to selectably pull said first conductive surface of said casingtoward said second voltage, said output logic electrically coupled tosaid semiconductor memory and said energy source.
 2. The electronictoken of claim 1, wherein said output logic only pulls said firstconductive surface of said casing toward said second voltage.
 3. Theelectronic token of claim 1, wherein said semiconductor memorypositioned in said cavity is volatile, said semiconductor memoryelectrically coupled to said energy source so that said data stored insaid semiconductor memory remains stored in said semiconductor memory.4. The electronic token of claim 1, further whereinsaid first conductivesurface is electrically coupled to a first signal line, said secondconductive surface electrically coupled to a second signal line, saidinput logic comprises a N-channel field-effect transistor electricallycoupled to said first signal line via said first conductive surface toselectably pull said first conductive surface toward a ground potentialand a high-impedance pull-down element electrically coupled to saidsecond signal line via said second conductive surface to selectably pulldown said second signal line toward a ground potential.
 5. Theelectronic token of claim 4, wherein said energy source having a firstlead and a total impedance from said first signal line to said firstlead substantially greater than an on-state impedance of said N-channelfield-effect transistor.
 6. The electronic token of claim 5, wherein thetotal impedance from said first signal line to said first lead is atleast 100 kilohms.
 7. The electronic token of claim 4, wherein saidhigh-impedance pull-down element consists of a very weak transistorconnected to be always on.
 8. The electronic token of claim 1, wherein afirst portion of said first conductive surface is planar and a secondportion of said second conductive surface is planar, said first portionof said first conductive surface and said second portion of said secondconductive surface are parallel to one another.
 9. The electronic tokenof claim 1, further comprising:(f) a voltage level detector coupled tosaid first conductive surface and said second conductive surface forreceiving signals applied as voltage level differences between saidfirst conductive surface and said second conductive surface; and (g) aswitch electrically connecting said first conductive surface and saidsecond conductive surfaces for sending signals by changing a resistancebetween said first conductive surface and second conductive surface. 10.The electronic token of claim 9, wherein said voltage level differencesare approximately 5 volts and said voltage level differences correspondto a logical high and a logical low.
 11. The electronic token of claim1, wherein said casing is button-shaped.
 12. The electronic token ofclaim 1, wherein said semiconductor memory, said input logic, saidoutput logic are integrated on a monolithic piece of silicon.
 13. Theelectronic token of claim 1, wherein an adhesive is affixed to saidfirst conductive surface of said casing to mount said casing to aphysical item.
 14. The electronic token of claim 1, wherein said casingis mountable to a physical item, said physical item is selected from agroup consisting of maintenance records, retail products machinery,cards, personnel identification badges, access control devices, acurrency equivalent device and any combination thereof.
 15. Theelectronic token of claim 1, wherein said casing has only said firstconductive surface and second conductive surface.
 16. The electronictoken of claim 1, wherein said semiconductor memory, said input logicand said output logic are packaged in a low-height package wherein saidlow-height package is selected from the group consisting of a flat packand small in-line integrated circuit, and any combination thereof. 17.The electronic token of claim 1, wherein said semiconductor memory,input logic, and output logic are combined into an integrated circuitthat is mounted on a very small printed circuit board positioned in saidcavity.
 18. The electronic token of claim 1, wherein said firstconductive surface and said second conductive surface are comprised ofmetal.
 19. The electronic token of claim 1, wherein said energy sourceis a battery.
 20. The electronic token of claim 19, wherein said batteryis a low voltage battery having a value of approximately 1.5 volts. 21.The electronic token of claim 1, wherein said semiconductor memory isstatic random access memory.
 22. The electronic token of claim 1,wherein said memory is storing approximately 4K bits in size.
 23. Theelectronic token of claim 1, wherein said casing is cylindrical.
 24. Theelectronic token of claim 23 wherein said cylindrical casing furthercomprises a flange.
 25. The electronic token of claim 1 wherein saidtoken stores units of currency.
 26. The electronic token of claim 1wherein said casing is made of a crush resistant material.
 27. Theelectronic token of claim 1 further comprising:security means containedwithin said casing for preventing unauthorized altering of data storedwithin said token.
 28. An electronic token, comprising:(a) asubstantially conductive container comprising a first conductive pieceand a second conductive piece, said first conductive piece and saidsecond conductive piece assembled together to define a recess, saidfirst conductive piece and said second conductive piece electricallyisolated from each other; (b) an energy source having a first terminaland a second terminal, said energy source positioned inside said recess,said first terminal of said energy source electrically coupled to saidfirst piece of said substantially conductive container; (c) memory andmemory access circuitry electrically coupled to said energy source, saidmemory access circuitry electrically coupled to said memory to controlaccess thereto; (d) a printed circuit board positioned inside saidrecess, said printed circuit board having multiple conductive linesthereon, said multiple conductive lines electrically isolated from eachother; (e) an integrated circuit package comprising an integratedcircuit, said integrated circuit package mounted on said printed circuitboard, said integrated circuit package having multiple leadselectrically coupled to said integrated circuit, said multiple leadselectrically coupled to said multiple conductive lines electricallyconnected to respective ones of said multiple conductive lines; (f)input logic operatively electrically coupled to said first conductivepiece and to said second conductive piece and configured to detectwhether said first conductive piece is at a first voltage or at a secondvoltage and to store data selectably in said memory via said memoryaccess circuitry, said input logic electrically coupled to said energysource; (g) a first one of said multiple conductive lines on saidprinted circuit board making electrical contact to said second terminalof said energy source and to said integrated circuit package; and (h) asecond one of said multiple conductive lines on said printed circuitboard making electrical contact to said first conductive piece of saidsubstantially conductive container and to said integrated circuit; (I)output logic comprising an active device electrically coupled toselectably pull said first conductive piece of said casing toward saidsecond voltage, said output logic electrically coupled to said memoryand to said memory access circuitry and to said energy source.
 29. Theelectronic token of claim 28, further comprising:(i) a third one of saidmultiple conductive lines on said printed circuit board makingelectrical contact to said second conductive piece of said substantiallyconductive container and to said integrated circuit.
 30. The electronictoken of claim 28, wherein said substantially conductive containerconsists of only two of said first conductive piece and said secondconductive piece.
 31. The electronic token of claim 28, wherein saidprinted circuit board is substantially rigid.
 32. The electronic tokenof claim 28, wherein said printed circuit board is flexible.
 33. Theelectronic token of claim 28, wherein said first conductive piece andsaid second conductive piece of said substantially conductive containeris comprised of stainless steel.
 34. The electronic token of claim 28,wherein said first conductive piece and said second conductive piece ofsaid substantially conductive container are swaged together and potted,to seal said energy source, said integrated circuit, said integratedcircuit package, and said printed circuit board in said recess.
 35. Theelectronic token of claim 28, wherein said output logic only pulls saidfirst conductive surface of said casing toward said second voltage. 36.The electronic token of claim 28, wherein said memory is volatile, saidmemory is electrically coupled to said energy source so that said datastored in said memory remains stored in said memory.
 37. The electronictoken of claim 28, further wherein said first conductive piece iselectrically coupled to a first signal line, said second conductivepiece electrically coupled to a second signal line said input logiccomprises a N-channel field-effect transistor electrically coupled tosaid first signal line via said first conductive piece to selectablypull said first conductive piece toward a ground potential and ahigh-impedance pull-down element electrically coupled to said secondsignal line via said second conductive piece to selectably pull downsaid second signal line toward said ground potential.
 38. The electronictoken of claim 37, wherein said energy source having a first lead and atotal impedance from said first signal line to said first leadsubstantially greater than an on-state impedance of said N-channelfield-effect transistor.
 39. The electronic token of claim 38, whereinsaid total impedance from said first signal line to said first lead isat least 100 kilohms.
 40. The electronic token of claim 37, wherein saidhigh-impedance pull-down element comprises a very weak transistorconnected to be always on.
 41. The electronic token of claim 28, whereina first portion of said first conductive piece is planar and a secondportion of said second conductive piece is planar surface, said firstportion of said first conductive piece and said second portion of secondconductive piece are parallel to one another.
 42. The electronic tokenof claim 28, further comprising:(f) a voltage level detector coupled tosaid first conductive piece and said second conductive piece forreceiving signals applied as voltage level differences between saidfirst conductive piece and second conductive piece; and (g) a switchconnecting said first conductive piece and said second conductive piecefor sending said signals by changing a resistance between said firstconductive piece and said second conductive piece.
 43. The electronictoken of claim 42, wherein said voltage level differences areapproximately 5 volts and said voltage level differences correspond to alogical high and a logical low.
 44. The electronic token of claim 28,wherein said substantially conductive container is button-shaped. 45.The electronic token of claim 28, wherein an adhesive is affixed to saidfirst conductive piece of said substantially conductive container tomount said substantially conductive container to a physical item. 46.The electronic token of claim 28, wherein said substantially conductivecontainer is mountable to a physical item, said physical item isselected from a group consisting of maintenance records, retailproducts, machinery, cards, personnel identification badges, an accesscontrol device, a currency equivalent device and any combinationthereof.
 47. The electronic token of claim 28, wherein said integratedcircuit package is a low-height package.
 48. The electronic token ofclaim 47, wherein said low-height package is selected from the groupconsisting of a flat pack and small out-line integrated circuit, and anycombination thereof.
 49. The electronic token of claim 28, wherein saidenergy source is a battery.
 50. The electronic token of claim 49,wherein said battery is a low voltage battery having a value ofapproximately 1.5 volts.
 51. The electronic token of claim 28, whereinsaid memory is static random access memory.
 52. The electronic token ofclaim 28, wherein said memory stores approximately 4K bits.
 53. Theelectronic token of claim 28, wherein said substantially conductivecontainer is cylindrical.
 54. The electronic token of claim 28 whereinsaid token stores units of currency.
 55. The electronic token of claim28 wherein said casing is made of a crush resistant material.
 56. Theelectronic token of claim 28, wherein said substantially conductivecontainer comprises at least said first conductive piece and said secondconductive piece.
 57. The electronic token of claim 28 furthercomprising:security means contained within said casing for preventingunauthorized altering of data stored within said token.
 58. Theelectronic token of claim 28, wherein said memory is non-volatile. 59.An electronic token, comprising:(a) a casing having a first conductivesurface and a second conductive surface, said first conductive surfaceand said second conductive surface accessible from an exterior of saidcasing, said first conductive surface and said second conductive surfacecombine to be a portion of said casing, said casing forms a cavity; (b)a coupling means to couple to an energy source, said coupling meanspositioned in said cavity; (c) a semiconductor memory positioned in saidcavity, said semiconductor memory electrically coupled to said means tocouple to an energy source; (d) input logic operatively electricallycoupled to sad first conductive surface and to said second conductivesurface of said casing and configured to detect whether said firstconductive surface is at a first voltage or at a second voltage andselectably to store data in said semiconductor memory accordingly, saidinput logic electrically coupled to said means to couple to an energysource; and (d) output logic comprising an active device electricallycoupled to selectably pull said first conductive surface of said casingtoward said second voltage, said output logic electrically coupled tosaid semiconductor memory and said means to couple to an energy source.60. The electronic token of claim 59, wherein said semiconductor memorypositioned in said cavity is volatile.
 61. The electronic token of claim59, wherein said first conductive surface is electrically coupled to afirst signal line, said second conductive surface electrically coupledto a second signal line, andsaid input logic comprises a N-channelfield-effect transistor electrically coupled to said first signal linevia said first conductive surface to selectably pull said firstconductive surface toward a ground potential and a high-impedancepull-down element electrically coupled to said second signal line viasaid second conductive surface to selectably pull down said secondsignal line toward a ground potential.
 62. The electronic token of claim61, wherein said means to couple to an energy source couples to a storedenergy source and said stored energy source has a first lead and a totalimpedance from said first signal line to said first lead substantiallygreater than an on-state impedance of said N-channel field-effecttransistor.
 63. The electronic token of claim 62, wherein the totalimpedance from said first signal line to said first lead is at least 100kilohms.
 64. The electronic token of claim 61, wherein saidhigh-impedance pull-down element consists of a very weak transistorconnected to be always on.
 65. The electronic token of claim 59, whereina first portion of said first conductive surface is planar and a secondportion of said second conductive surface is planar, said first portionof said first conductive surface and said second portion of said secondconductive surface are parallel to one another.
 66. The electronic tokenof claim 59, further comprising:(f) a voltage level detector coupled tosaid first conductive surface and said second conductive surface forreceiving signals applied as voltage level differences between saidfirst conductive surface and said second conductive surface; and (g) aswitch electrically connecting said first conductive surface and saidsecond conductive surfaces for sending signals by changing a resistancebetween said first conductive surface and second conductive surface. 67.The electronic token of claim 66, wherein said voltage level differencesare approximately 5 volts and said voltage level differences correspondto a logical high and a logical low.
 68. The electronic token of claim59, wherein said casing is button-shaped.
 69. The electronic token ofclaim 59, wherein said semiconductor memory, said input logic, saidoutput logic are integrated on a monolithic piece of silicon.
 70. Theelectronic token of claim 59, wherein an adhesive is affixed to saidfirst conductive surface of said casing to mount said casing to aphysical item.
 71. The electronic token of claim 59, wherein said casingis mountable to a physical item, said physical item is selected from agroup consisting of maintenance records, retail products, machinery,cards, personnel identification badges, currency equivalence, an accesscontrol device, a currency equivalent device and any combinationthereof.
 72. The electronic token of claim 59 wherein said token storesunits of currency.
 73. The electronic token of claim 59 wherein saidcasing is made of a crush resistant material.
 74. The electronic tokenof claim 59 wherein said cylindrical casing further comprises a flange.75. The electronic token of claim 59 further comprising:security meanscontained within said casing for preventing unauthorized altering ofdata stored within said token.
 76. A human wearable electronic token,comprising:(a) a casing having a first conductive surface and a secondconductive surface, said first conductive surface and said secondconductive surface accessible from an exterior of said casing, saidfirst conductive surface and said second conductive surface combine asubstantial portion of said casing, said first conductive surface andsaid second conductive surface combine to form a cavity; (b) an energysource positioned in said cavity; (c) a semiconductor memory positionedin said cavity, said semiconductor memory electrically coupled to saidenergy source; (d) input logic operatively electrically coupled to saidfirst conductive surface and to said second conductive surface of saidcasing and configured to detect whether said first conductive surface isat a first voltage or at a second voltage and selectably to store datain said semiconductor memory accordingly, said input logic electricallycoupled to said energy source; (e) output logic comprising an activedevice electrically coupled to selectably pull said first conductivesurface of said casing toward said second voltage, said output logicelectrically coupled to said semiconductor memory and said energy source(f) a human wearable holder.
 77. The electronic token of claim 76wherein said human wearable holder is a ring.
 78. A human wearableelectronic token, comprising:(a) a substantially conductive containercomprising a first conductive piece and a second conductive piece, saidfirst conductive piece and said second conductive piece assembledtogether to define a recess, said first conductive piece and said secondconductive piece electrically isolated from each other; (b) an energysource having a first terminal and a second terminal, said energy sourcepositioned inside said recess, said first termainl of said energy sourceelectrically coupled to said first piece of said substantiallyconductive container; (c) memory and memory access circuitryelectrically coupled to said energy source, said memory access circuitryelectrically coupled to said memory to control access thereto; (d) aprinted circuit board positioned inside said recess, said printedcircuit board having multiple conductive lines thereon, said multipleconductive lines electrically isolated from each other; (e) anintegrated circuit package comprising an integrated circuit, saidintegrated circuit package mounted on said printed circuit board, saidintegrated circuit package having multiple leads electrically coupled tosaid integrated circuit, said multiple leads electrically coupled tosaid multiple conductive lines electrically connected to respective onesof said multiple conductive lines; (f) input logic operativelyelectrically coupled to said first conductive piece and to said secondconductive piece and configured to detect whether said first conductivepiece is at a first voltage or at a second voltage and to store dataselectably in said memory via said memory access circuitry, said inputlogic electrically coupled to said energy source; (g) a first one ofsaid multiple conductive lines on said printed circuit board makingelectrical contact to said second terminal of said energy source and tosaid integrated circuit package; (h) a second one of said multipleconductive lines on said printed circuit board making electrical contactto said first conductive piece of said substantially conductivecontainer and to said integrated circuit; (i) output logic comprising anactive device electrically coupled to selectably pull said firstconductive piece of said casing toward said second voltage, said outputlogic electrically coupled to said memory and to said memory accesscircuitry and to said energy source; and (j) a human wearable holder.79. The electronic token of claim 78 wherein said human wearable holderis a ring.
 80. A human wearable electronic token, comprising:(a) acasing having a first conductive surface and a second conductivesurface, said first conductive surface and said second conductivesurface accessible from an exterior of said casing, said firstconductive surface and said second conductive surface combine to be aportion of said casing, said casing forms a cavity; (b) a coupling meansto couple to an energy source, said coupling means positioned in saidcavity; (c) a semiconductor memory positioned in said cavity, saidsemiconductor memory electrically coupled to said means to couple to anenergy source; (d) input logic operatively electrically coupled to saidfirs conductive surface and to said second conductive surface of saidcasing and configured to detect whether said first conductive surface isat a first voltage or at a second voltage and selectably to store datain said semiconductor memory accordingly, said input logic electricallycoupled to said means to couple to an energy source; (e) output logiccomprising an active device electrically coupled to selectably pull saidfirst conductive surface of said casing toward said second voltage, saidoutput logic electrically coupled to said semiconductor memory and saidmeans to couple to an energy source (f) a human wearable holder.
 81. Theelectronic token of claim 80 wherein said human wearable holder is aring.